readme.txt 10-May-2010     dkelly@qnx.com
-----------------------------------------

This archive contains source examples which utilize io-pkt's
bpf (Berkeley Packet Filter ) interface.

bpfmon

    This executable illustrates a basic ethernet packet monitor.
    
    You must specify the "interface name" to monitor (use ifconfig) and
    typically the "-p" option to enable promiscuous mode.
    
    You can add "filters" in the C-code - a few packet types are selected
    by the logic as examples.
    
bpfXmit

    This executable transmits a bare ethernet frame with 'custom' frame id.
    
    You must specify the "interface name" to transmit (use ifconfig) and
    a <host name> from "/etc/macs".
    
    /etc/macs has format:
        <host name>  nn:nn:nn:nn:nn:nn
        
    The frame id can only be changed by recompiling.  Do not expect your
    custom ethernet frame to be routed!

bpfRcv

    This executable will receive packets and print a message when any 
    'custom' frame id is received.

    You must specify the "interface name" to monitor (use ifconfig).

    The frame id can only be changed by recompiling.  Do not expect your
    custom ethernet frame to be routed!

    




