sending MAC packets

Julian Elischer julian at elischer.org
Tue May 3 17:52:54 PDT 2005



Daniel Valencia wrote:

>Hello all
>
>I'm doing research on network-layer protocols, so I
>need a way to send packets straight into layer 2.  So
>far i've been reffered to raw sockets, but i've read
>the code and i cannot skip header checking and that
>stuff...  Is there a way to interact with the network
>if in a way that I can get network parameters (mtu,
>etc.) and send packets (specify destination mac
>address and payload)??
>
>Thank you
>
>- Daniel
>  
>

libpcap is one way using bpf..
also
netgraph can do that in a more 'brute force' manner

>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>_______________________________________________
>freebsd-net at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-net
>To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>  
>


More information about the freebsd-net mailing list