Skip to contentSkip to conversation

Outbound MAC addresses

DISCUSSION hMax Roth 2 participants 2 messages Sep 14, 2002 – Sep 15, 2002 netfilter

lore
Share & tools
lore

hMax Roth

author
#0 lore raw

Hello, again. One quick question:

(a little off topic, my apologies). Who sets the MAC addresses for outbound packets? Is it the device driver? I know the device driver sets them for incoming, but how does it do it for sending packets? Does the IP layer track which mac addresses match the IP addresses? Is there a cache to set the destination mac address for outbound packets? Thanks in advance.

Please, cc the response to my email. (I can't subscribe to the list at the moment)

_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

#1 lore raw
Quoted 3 lines · hMax Roth

Hello, again. One quick question:

(a little off topic, my apologies).

you should ask this question at [email protected], since the question is about the core netowkr layer.

Quoted 2 lines

Who sets the MAC addresses for outbound packets? Is it the device driver? I know the device driver sets them for incoming,

This assumption is wrong.

Quoted 2 lines

sending packets? Does the IP layer track
which mac addresses match the IP addresses?

there is no 1:1 mapping (consider assymetric routing).

Quoted 1 line

Chat with friends online, try MSN Messenger: http://messenger.msn.com

IRC can do this withoutany M$N stuff.

Signature · 5 lines
Live long and prosper
- Harald Welte / [email protected]               http://www.gnumonks.org/
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M+ 
V-- PS++ PE-- Y++ PGP++ t+ 5-- !X !R tv-- b+++ !DI !D G+ e* h--- r++ y+(*)