public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* How to use ixp4xx_hss (or generic-hdlc?)
@ 2008-11-20 17:42 Miguel Ángel Álvarez
  2008-11-20 22:24 ` Francois Romieu
  2008-11-21 23:09 ` Krzysztof Halasa
  0 siblings, 2 replies; 8+ messages in thread
From: Miguel Ángel Álvarez @ 2008-11-20 17:42 UTC (permalink / raw)
  To: netdev, khc

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-11-25  7:24 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-20 17:42 How to use ixp4xx_hss (or generic-hdlc?) Miguel Ángel Álvarez
2008-11-20 22:24 ` Francois Romieu
2008-11-21  8:18   ` Miguel Ángel Álvarez
2008-11-21 23:28     ` Krzysztof Halasa
2008-11-24  9:56       ` Miguel Ángel Álvarez
2008-11-24 16:33         ` Krzysztof Halasa
2008-11-25  7:24           ` Miguel Ángel Álvarez
2008-11-21 23:09 ` Krzysztof Halasa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox