]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-dhcp-server: Send replies to BOOTP relay server port 2743/head
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 25 Feb 2016 13:36:40 +0000 (15:36 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 25 Feb 2016 13:46:55 +0000 (15:46 +0200)
commit8eb7b6a595752b1ef1029717444bd4edccf878a8
tree9b7a3b8061b8a2cd9a52eab9b48c263b15ba77c3
parent96b08d65a12c304c59febbc52bc871753f0c6f31
sd-dhcp-server: Send replies to BOOTP relay server port

RFC 2131 Section 4.1 says that

 "If the ’giaddr’ field in a DHCP message from a client is non-zero,
  the server sends any return messages to the ’DHCP server’ port on the
  BOOTP relay agent whose address appears in ’giaddr’."

Fix this by adding a destination port when sending unicast UDP packets
and provide the server port when a BOOTP relay agent is being used.
src/libsystemd-network/sd-dhcp-server.c