Bookmark this page:
Yahoo!
Windows Live
del.icio.us
digg
Netscape
|
|
||||||||||||||||||||||||||||
|
Posted by on June 15, 2008, 3:02 pm
Please log in for more thread options for a networking application, I need to set the source MAC address individually for every IP packet that I send. Is this possible at all? I know that the MAC address can be changed in software but per IP frame? On the other hand, every layer 2 switch does exactly this, so it must be possible in principle. Do I need special network controller chips that support this feature? All datasheets of ethernet controllers I got hands on allow you to program the MAC address but it is then automatically filled in for every packet. Also, how would the programming side look like? I presume I must use RAW sockets but in which field would I set the source MAC address? Thanks, Albrecht | ||||||||||||||||||||||||||||
|
Posted by hat-trick on August 10, 2008, 1:51 pm
Please log in for more thread options On Jun 15, 3:02=A0pm, albrechtuhlm...@gmx.net wrote: Albrecht, For what practical, benevolent purpose would you ever need to do this!? hat trick | ||||||||||||||||||||||||||||
|
Posted by Patrick Schaaf on August 11, 2008, 2:17 am
Please log in for more thread options
>For what practical, benevolent purpose would you ever need to do this!?
What about replaying network traces to test (possibly modified) packet filter rules? What about generating specifically formatted packets to test such rules where they try to match MAC addresses (whatever good that would do)? What about testing layer 2 switch MAC table overflow characteristics? best regards Patrick | ||||||||||||||||||||||||||||
|
Posted by David Schwartz on August 11, 2008, 9:44 am
Please log in for more thread options
> Albrecht,
> > For what practical, benevolent purpose would you ever need to do > this!? Aside from all the others suggested, the most obvious would be if you are implementing a transparent layer 2 switch/bridge. DS | ||||||||||||||||||||||||||||
|
Posted by Arnold Nipper on August 11, 2008, 12:10 pm
Please log in for more thread options
On 11.08.2008 15:44 David Schwartz wrote >
>> Albrecht,
>> >> For what practical, benevolent purpose would you ever need to do >> this!? >
> Aside from all the others suggested, the most obvious would be if you > are implementing a transparent layer 2 switch/bridge. > s/transparent/intransparent/ ? Otherwise I don't get what you are pointing at. Arnold | ||||||||||||||||||||||||||||
| Similar Threads | Posted |
| Source MAC address per IP packet | June 15, 2008, 3:02 pm |
| Multicast MAC in Source MAC Address Field | August 30, 2005, 5:13 pm |
| provide me Source code of IGMPv2 | May 26, 2006, 2:37 am |
| Does someone have IGMP snooping source code for Bridge?? | May 30, 2006, 9:06 am |
| Looking for open-source home DSL gateway software & hardware to run it | November 1, 2007, 10:38 am |
| cable management - source for velcro straps with screw hole? | July 20, 2004, 8:04 pm |
| MAC address of an IPv6 address | April 10, 2007, 4:42 pm |
| XGMII end of packet | July 20, 2004, 4:19 am |
| Generate packet with bad CRC | June 21, 2007, 9:15 am |
| Packet recorder | August 8, 2007, 11:36 am |
| Packet capture | November 28, 2007, 12:07 am |
| Creating a test packet | October 13, 2005, 11:21 am |
| ethernet packet preamble | May 4, 2006, 2:01 pm |
| determination of length of packet............ | October 18, 2006, 1:41 am |
| Packet Engines PowerRail 1000 | April 26, 2005, 8:06 pm |

Source MAC address per IP packet
Yahoo!
Windows Live
del.icio.us
digg
Netscape 






>
> for a networking application, I need to set the source MAC address
> individually
> for every IP packet that I send. Is this possible at all? I know that
> the MAC address
> can be changed in software but per IP frame? On the other hand, every
> layer 2
> switch does exactly this, so it must be possible in principle. Do I
> need special
> network controller chips that support this feature? All datasheets of
> ethernet
> controllers I got hands on allow you to program the MAC address but it
> is then
> automatically filled in for every packet.
>
> Also, how would the programming side look like? I presume I must use
> RAW sockets
> but in which field would I set the source MAC address?
>
> Thanks,
>
> Albrecht