[Click] Ethernet MAC address and click...

Marko Zec zec at icir.org
Wed Feb 16 19:56:56 EST 2005


On Wednesday 16 February 2005 23:41, Nicholas Weaver wrote:
> On common hardware (particularly intel ethernet chipsets), in user
> mode (FreeBSD):
>
> Is it possible for ToDevice to preserve the from MAC address in the
> header of packets passed to it?  Or am I stuck with the observed
> behavior: the from MAC is assigned to that associated with the
> ethernet card?

Can you check if the attached patch makes any difference?

Cheers,

Marko

>
> The simple queue:
>
> FromDevice(em0) -> Queue -> ToDevice(em1);
>
>
> TCPDump em0 side:
> 14:14:58.900668 0:d0:bb:fa:86:19 ff:ff:ff:ff:ff:ff 0806 60:
> 		arp who-has 192.150.187.20 tell 192.150.187.109
>
>
> TCPDump em1 side (verified at a 2nd machine attached to em1's
> switch): 14:14:58.900710 0:e:c:69:f:7e ff:ff:ff:ff:ff:ff 0806 60:
> 		arp who-has 192.150.187.20 tell 192.150.187.109
>
> (em1 outputs gain em1's MAC address)
>
>
> Barring that, does anyone have a bootp/dhcp proxy code in Click?
>
> Many thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: todevice.diff
Type: text/x-diff
Size: 514 bytes
Desc: not available
Url : https://amsterdam.lcs.mit.edu/pipermail/click/attachments/20050217/1b2999b6/todevice.bin


More information about the click mailing list