[lkml]   [2000]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: AF_PACKET doesnt work
Hari Krishna <> 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().


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:56    [W:0.036 / U:2.644 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site