genode/os/src/server/nic_bridge
Stefan Kalkowski d3902e8538 Make nic_bridge's MAC address range configurable
By adding a "mac=XX:XX:XX:XX:XX:XX" attribute/value pair to the nic_bridge's
configuration one can define the first MAC address from which the nic_brigde
will allocate MACs for it's clients. Note: that the least relevant byte will
be ignored, and ranges from 0-255. Fixes #424.
2012-10-24 16:39:02 +02:00
..
address_node.cc Nic_bridge: Use Nic::Packet_allocator 2012-08-07 22:23:00 +02:00
address_node.h Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
avl_safe.h Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
component.cc Extend nic_bridge to support internal traffic 2012-07-10 16:30:29 +02:00
component.h Nic_bridge: Use Nic::Packet_allocator 2012-08-07 22:23:00 +02:00
list_safe.h Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
mac.cc Make nic_bridge's MAC address range configurable 2012-10-24 16:39:02 +02:00
mac.h Make nic_bridge's MAC address range configurable 2012-10-24 16:39:02 +02:00
main.cc Make nic_bridge's MAC address range configurable 2012-10-24 16:39:02 +02:00
packet_handler.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
packet_handler.h Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
README Make nic_bridge's MAC address range configurable 2012-10-24 16:39:02 +02:00
target.mk Imported Genode release 11.11 2011-12-22 16:19:25 +01:00
vlan.cc Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00
vlan.h Bump year in copyright headers to 2012 2012-01-03 15:35:05 +01:00

The nic_bridge provides multiple sessions of the 'Nic' service while
using a single 'Nic' session for forwarding requests. For proper working
it implements some kind of the 'proxy arp' protocol (rfc1027). That
means it allocates a MAC address for each client. Whenever a client
sends a packet it changes the sender MAC address to the one it hold
available for the client. Moreover, it monitors DHCP packets, and
tracks which IP address is used by which client. Whenever ARP packets
come from the outside it will answer them with the corresponding MAC
address.

By adding the following attribute to the 'nic_bridge' config node:

! <config mac="02:02:02:02:02:00"/>

one can define the first MAC address from which the nic_brigde
will allocate MACs for it's clients. Note: that the least relevant
byte will be ignored always starting from 0.