Sending Ethernet frames

From: Patrik Arlos (Patrik.Arlos_at_bth.se)
Date: 03/21/05

  • Next message: Don Bowman: "RE: Sending Ethernet frames"
    To: <freebsd-net@freebsd.org>
    Date: Mon, 21 Mar 2005 14:05:48 +0100
    
    

    Hi,

     

    I'm trying to send 'raw' Ethernet frames. I have however not found any
    examples of how to do this in BSD.

    Is it possible to open a 'ethernet' socket, similar to a AF_INET? I need to
    be able to control the destination address and type/len field in the
    Ethernet header.

    In Linux it is possible open a SOCK_RAW and bind it to a particular
    interface, I've tried to use the sockadd_dl but in this case bind dies with
    error 22, any way to do this?

     

     

    /Patrik

     

    _______________________________________________
    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"


  • Next message: Don Bowman: "RE: Sending Ethernet frames"

    Relevant Pages

    • RE: Sending Ethernet frames
      ... > I'm trying to send 'raw' Ethernet frames. ... > found any examples of how to do this in BSD. ... > this case bind dies with error 22, ...
      (freebsd-net)
    • Re: Sending Ethernet frames
      ... > Is it possible to open a 'ethernet' socket, ... I've tried to use the sockadd_dl but in this case bind dies ... It may be a good idea to investigate if libnet does your job. ... If you do decide to use libnet, I also have a few local patches that may ...
      (freebsd-net)
    • nVidia nForce2 potential owners please read (take two)
      ... up programming documentation for their MCP ethernet controller. ... support for a given OS, ... people who want MCP ethernet support in BSD. ... - You bought an nVidia nForce2 system without realizing the on-board ...
      (freebsd-hackers)
    • nVidia nForce2 potential owners please read (take two)
      ... up programming documentation for their MCP ethernet controller. ... support for a given OS, ... people who want MCP ethernet support in BSD. ... - You bought an nVidia nForce2 system without realizing the on-board ...
      (freebsd-net)
    • Re: Strange MTU Problem
      ... PPPoE adds the mac address amongst other things on top of the 8 bytes that eat out of the 1500 ethernet payload limit. ... the header for Ethernet frames of type 0x8864 ... This is not the case as ADSL uses ATM/AAL5 and in the case of PPPoE the mac gets sent in the AAL5 frame as well as other overheads - for PPPoA it doesn't. ...
      (comp.os.linux.networking)