Source MAC address per IP packet

Source MAC address per IP packet

NewsGroups | Search | Tools
 comp.dcom.lans.ethernet  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Source MAC address per IP packet albrechtuhlmann 06-15-2008
Posted by on June 15, 2008, 3:02 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Hello,

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


On Jun 15, 3:02=A0pm, albrechtuhlm...@gmx.net wrote:
> Hello,
>
> 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

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



>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



> 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


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 ThreadsPosted
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
MAC address of an IPv6 address April 10, 2007, 4:42 pm
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

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map