lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 20 Nov 2008 18:42:52 +0100
From:	"Miguel Ángel Álvarez" <gotzoncabanes@...il.com>
To:	netdev@...r.kernel.org, khc@...waw.pl
Subject: How to use ixp4xx_hss (or generic-hdlc?)

Hi.

Is there any kind of tutorials on using generic-hdlc interfaces? I
just want to make a simple point-to-point connection between two
devices using ixp4xx_hss. I would like the data to be packetized using
hdlc.

So... The questions are...
-  I suppose I should use sethdlc to configure the interface, but I am
not sure about the configuration except that I should set "hdlc"
protocol (I hope).
- Then I should "open" the interface. I am trying with "ifconfig hdlc0
up", but I obtain an "ifconfig: SIOCSIFFLAGS: Function not
implemented". As my previous use of net devices has been using
ethernet or wifi devices in an "IP world", I am not quite sure if
ifconfig should be used in this case.
- Then I hope that I should open a raw (SOCK_RAW) PF_PACKET socket
with protocol IPPROTO_RAW? I am not using IP, so this does not seem to
be the correct protocol, but...
- And the address to sendto the data? Should it be formed just using
the name of the interface or it requires more data?

Thanks. I know these should be really newbie questions, but I am
finding difficult to know how to manage a "serial" device using a
netdev interface.

Miguel Ángel Álvarez
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ