[lkml]   [1999]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    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, ...);

    socket(PF_PACKET, SOCK_RAW, ...);

    To use the extended functions of the new packet family see the packet
    manpage in*


    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
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:50    [W:0.019 / U:0.116 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site