RAW socket ETH_P_PPP_SES (0x8864)

Discussion in 'Linux Networking' started by Mokhtar BEN MESSAOUD, Sep 29, 2013.

  1. Hi

    I need to detect pppoe session packet ( 0x8864)

    I define a raw socket : socket(AF_PACKET, SOCK_RAW, htons(ETH_P_PPP_SES))

    but noting is received !!

    I receive all packet including pppoe session packet when I use socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL))

    How to filter using protocol parameter in socket system call ?

    Any comment is welcome
     
    Mokhtar BEN MESSAOUD, Sep 29, 2013
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.