[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <b0438a630811200942nac803a4hb0c054bf28195cb3@mail.gmail.com>
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