Read Raw Packets in VXWorks - VxWorks

This is a discussion on Read Raw Packets in VXWorks - VxWorks ; Does anybody have an idea on how to read raw packets(including ethernet headers) in vxworks using sockets(not ethLib). Ive noticed that theres no PF_PACKET address family for Vxworks(unlike Linux). best regards, Roy...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Read Raw Packets in VXWorks

  1. Read Raw Packets in VXWorks

    Does anybody have an idea on how to read raw packets(including ethernet
    headers) in vxworks using sockets(not ethLib).

    Ive noticed that theres no PF_PACKET address family for Vxworks(unlike
    Linux).

    best regards,
    Roy


  2. Re: Read Raw Packets in VXWorks

    Search for vxsniff.c on this group or the internet. I posted it
    recently.

    It hooks to the vxworks ethernet driver and shims off the packets to
    log them on the console. They still get passed up to the tcp stack
    however.

    This doesn't do exactly what you want - you'll have to consume to
    packets with the socket stream.

    lc


  3. Re: Read Raw Packets in VXWorks

    thanks LarryC, Anyways, i used the muxBind to have more control of
    packets sent and received.


+ Reply to Thread