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

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