[2291] in linux-net channel archive
Re: A couple of questions.
daemon@ATHENA.MIT.EDU (Alan Cox)
Fri Mar 29 14:03:12 1996
From: iialan@iifeak.swan.ac.uk (Alan Cox)
To: mr@hplb.hpl.hp.com (Manuel Rodriguez)
Date: Fri, 29 Mar 1996 17:55:14 +0000 (GMT)
Cc: linux-net@vger.rutgers.edu
In-Reply-To: <9603291649.ZM7014@nwainwri.hpl.hp.com> from "Manuel Rodriguez" at Mar 29, 96 04:49:08 pm
> b) If I try to send a broadcast packet (all 1's) to the network, the kernel
> looks at the routing table and selects the apropiate ethx card. But my idea
> of a broadcast is that a broadcast packet must be sent to ALL the ethernet
> (or whatever) devices, but it seems it does not work.
SOCK_PACKET dioes not use routing tables at all. The sockaddr you pass
to sendto/sendmsg is a struct sockaddr with sa_name set to the device name.
Very latest kernels have a protocol info setting ability to.
Alan