[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <m3bpw8smkh.fsf@maximus.localdomain>
Date: Sat, 22 Nov 2008 00:09:50 +0100
From: Krzysztof Halasa <khc@...waw.pl>
To: Miguel Ángel Álvarez <gotzoncabanes@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: How to use ixp4xx_hss (or generic-hdlc?)
"Miguel Ángel Álvarez" <gotzoncabanes@...il.com> writes:
> Is there any kind of tutorials on using generic-hdlc interfaces?
Not much, Documentation/networking/generic-hdlc.txt.
> 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.
> - 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).
Sure.
> - 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.
modprobe driver and maybe hdlc_raw
sethdlc hdlc0 hdlc
ifconfig hdlc0 up should work fine.
> - 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...
Seems entirely correct.
> - And the address to sendto the data? Should it be formed just using
> the name of the interface or it requires more data?
No, all data is sent to the other end :-)
> 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.
Actually it's a bit different than normal async serial ports - HDLC
means packets.
--
Krzysztof Halasa
--
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