-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 4 Jan 2000, Jonathan Kovacs wrote:

> strncpy( eth.eth_device_name, "eth0", IFNAMSIZ );
> eth.eth_addr.sll_family = AF_PACKET;
> eth.eth_addr.sll_hatype = PACKET_OTHERHOST;
> eth.eth_addr.sll_halen = IFHWADDRLEN;

   This is where problem lies. You need to initialize sll_ifindex member
of sockaddr_ll structure with interface's index. On the other hand,
initializing sll_hatype and sll_halen is useless. sll_protocol will need
to be filled in too, probably.

> My final goal is an IPX-over-IP tunnel.  I've looked at the code for
> tipxd, but they are using the apparently deprecated SOCK_PACKET
> interface, with sockaddr_in structures...
> 
> Any help would be greatly appreciated,

   I have gathered quite a lot of information about using SOCK_RAW socket,
so if you have something, ask me.

   Bye Borek

- --

=====================================================================
BOREK LUPOMESKY, network administrator    University of J. E. Purkyne
                                          Ceske mladeze 8
WWW:       http://www.ujep.cz/~lupomesk/  Usti nad Labem, 40096
IRCnet:    Borek @ #usti                  The Czech Republic
PGP keyid: B6A06AEB                       tel: +420-602-376368
==========[ MIME/ISO-8859-2 & PGP encrypted mail welcome ]===========
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE4cnO0A6dWI7agausRAqL1AKCvLIuUTC/tB3VvqMMTKn7qwkEBbgCffNNE
vkIMpj42mmGrgOvD2jROI1U=
=OHEv
-----END PGP SIGNATURE-----

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to