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 glen herrmannsfeldt on August 11, 2008, 6:09 pm
If you were  Registered and logged in, you could reply and use other advanced thread options



On Jun 15, 3:02 pm, albrechtuhlm...@gmx.net wrote:

>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?

As far as I know, in some the whole packet is generated
in memory (or in NIC memory) and then sent, in others the
source address is stuffed in as it is transmitted.

You might look at older ones from the days when hardware
was more expensive. (Eight bit ISA days.)

You should be working at the hardware level, though,
not while running a networking OS. (DOS makes it easy,
especially if you never return.)

Otherwise, just write the source address register
before sending each packet. (Again, working directly
with the hardware registers, not through a
networking OS.

You want the data sheet for the individual controller
chip, not the whole card.

-- glen


Spring Sale Save 20% Banner - Sale Ended 5/3/07 So Updated to NonPromo Ad
Posted by Burkhard Ott on August 12, 2008, 8:31 am
If you were  Registered and logged in, you could reply and use other advanced thread options


Am Sun, 10 Aug 2008 10:51:49 -0700 schrieb hat-trick:

> On Jun 15, 3:02 pm, albrechtuhlm...@gmx.net wrote:

>> 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
>> 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?
>>

What about /usr/src/linux/if_ether.h ?
(struct ethhdr)

You can set the MAC address to what ever you want.

cheers

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