Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 May 2005 17:52:50 -0700
From:      Julian Elischer <julian@elischer.org>
To:        Daniel Valencia <fetrovsky@yahoo.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: sending MAC packets
Message-ID:  <42781CE2.4090805@elischer.org>
In-Reply-To: <20050504003321.45603.qmail@web53907.mail.yahoo.com>
References:  <20050504003321.45603.qmail@web53907.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help


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@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-net
>To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>  
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42781CE2.4090805>