Messages in this thread | | | Subject | Re: AF_PACKET doesnt work | From | Philippe Troin <> | Date | 20 Feb 2000 16:20:29 -0800 |
| |
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/
| |