lkml.org 
[lkml]   [1999]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: SOCK_PACKET (was Re: [patch] fixed af_packet...)
On Sat, Mar 13, 1999 at 08:47:30AM +0100, B. James Phillippe wrote:
> On 13 Mar 1999, Andi Kleen wrote:
>
> > >
> > > tcpdump uses obsolete (PF_INET,SOCK_PACKET)
> >
> > Because that API is obsolete, and Linux does not want to support it
> > forever.
>
> I'm sorry, I'm terribly ignorant. Is there some documentation on how to
> update programs that use this API to the 2.2 method (eg. what is the 2.2
> method)? I wrote a program for sending gratuitous ARP requests using
> SOCK_PACKET under 2.0 and I'd like to redo it for 2.2.

For existing programs the easiest way is to simply replace the

socket(PF_INET, SOCK_PACKET, ...);

with
socket(PF_PACKET, SOCK_RAW, ...);

To use the extended functions of the new packet family see the packet
manpage in ftp.muc.de:/people/ak/netman*


-Andi

--
This is like TV. I don't like TV.

-
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:50    [W:0.151 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site