[lkml]   [1999]   [May]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: linux/net/packet/af_packet.c and PF_PACKET/SOCK_PACKET

    > There is no difference between SOCK_DGRAM and SOCK_RAW in PF_PACKET.

    No, there is large difference between SOCK_RAW and SOCK_DGRAM
    for packet socket.

    SOCK_DGRAM sends/receive only network payload with
    MAC headers stripped/added in the kernel.

    SOCK_RAW tries to make best efforts to send/receive true raw data.

    Generally, 90% of our drivers are broken and do not give
    enough information (or give wrong information) to use SOCK_RAW unambiguously,
    so that SOCK_DGRAM should be used always when it is possible.


    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:51    [W:0.043 / U:9.912 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site