Re: AF_PACKET doesnt work

From: Philippe Troin (phil@fifi.org)
Date: Sun Feb 20 2000 - 19:20:29 EST


Hari Krishna <hari@iitg.ernet.in> writes:

> After getting a sockt from socket(AF_PACKET,SOCK_RAW,*)
> i was not able to read/write any thing from/to the descriptor.
> any problem with AF_PACKET?

You need to bind it to a sockaddr_ll OR pass htons(ETH_P_ALL) as the
3rd argument of socket().

Phil.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:26 EST