On Tue, Apr 25, 2000 at 09:15:22AM -0700, Siddharth Mathur wrote:
> i am specifying ETH_P_IP as my protocol in the socket
> call, is it right?
> what is ETH_P_802_3 used for?
> the linux/if_ether.h file defines it as 'dummy type
> for 802.3 frames'...
> why the 'dummy'?
> 
> do i need to bind the socket to eth0 first?

Either pass a valid interface index in the sockaddr_ll (!= 0),
or bind first.

This is documented in packet(7) BTW:
`` sll_ifindex  is
       the  interface index of the interface (see netdevice(2) );
       0  matches  any  interface  (only  legal   for   binding). ''


> 
> even if the sendto is successful will the transmitted
> packet show 
> in the TX packets on doing ifconfig?

Yes.

> 
> how is PACKET_OTHERHOST different from the above?

PACKET_OTHERHOST is only valid for RX packets and is used
for packets not destined to this host (foreign packets when the interface
is in promiscuous mode)


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

Reply via email to