Tuma Wang writes:
> On Fri, Jun 13, 2008 at 4:06 PM, Peter Memishian
> <[EMAIL PROTECTED]> wrote:
> > Through DLPI; man dlpi_open(), dlpi_bind(), dlpi_info(), and dlpi_send()
> > for starters.  There are numerous example programs in the source tree.
> 
> And the related question:
> 
> I want to build an Ethernet frame from scratch and send it out. If I
> use a different source mac address in the raw frame (say, the NIC's
> real mac addr is X, and I use Y in the frame), can this frame be sent
> out? Will the NIC driver drop it when it found this frame strange?

Drivers generally aren't in the business of attempting to verify that
the client programs are "cheating" by forging addresses.  Doing so
would just be a performance sink for the normal case, and useless in
general.

However, it's important to know that standards-compliant DLPIv2 does
*not* allow the client application to set the MAC source address on a
packet-by-packet basis.  If you want to do that, then you'll need to
use the Sun-proprietary (not standardized or portable, but not secret)
extension to set the interface into raw mode.

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to