summaryrefslogtreecommitdiff
path: root/src/dhcp.c
diff options
context:
space:
mode:
authorNeil Jerram <Neil.Jerram@metaswitch.com>2015-06-10 22:23:20 +0100
committerSimon Kelley <simon@thekelleys.org.uk>2015-06-10 22:23:20 +0100
commit4918bd550573844441a287a67202a6a3f0f6126a (patch)
tree36fc0c14c623a0f26dfb2f4987d61fcc37f02d0a /src/dhcp.c
parent9bad339af848fc30bab4ea2759f022820f474e17 (diff)
downloaddnsmasq-4918bd550573844441a287a67202a6a3f0f6126a.tar.gz
Documenation updates for --bridge-interface and "off-link".
Diffstat (limited to 'src/dhcp.c')
-rw-r--r--src/dhcp.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dhcp.c b/src/dhcp.c
index eb1ea81..e6fceb1 100644
--- a/src/dhcp.c
+++ b/src/dhcp.c
@@ -225,10 +225,11 @@ void dhcp_packet(time_t now, int pxe_fd)
strncpy(arp_req.arp_dev, ifr.ifr_name, 16);
#endif
- /* One form of bridging on BSD has the property that packets
- can be recieved on bridge interfaces which do not have an IP address.
- We allow these to be treated as aliases of another interface which does have
- an IP address with --dhcp-bridge=interface,alias,alias */
+ /* If the interface on which the DHCP request was received is an
+ alias of some other interface (as specified by the
+ --bridge-interface option), change ifr.ifr_name so that we look
+ for DHCP contexts associated with the aliased interface instead
+ of with the aliasing one. */
for (bridge = daemon->bridges; bridge; bridge = bridge->next)
{
for (alias = bridge->alias; alias; alias = alias->next)