Systemd/src/libsystemd-network
Clemens Gruber 77ff6022fa networkd: Add EmitRouter= option for DHCP Server (#3251)
Add an option to disable appending DHCP option 3 (Router) to the DHCP
OFFER and ACK packets.
This commit adds the boolean option EmitRouter= for the [DHCPServer]
section in .network files.

Rationale: On embedded devices, it is very useful to have a DHCP server
running on an USB OTG ethernet gadget interface to avoid manual setup on
the client PCs, but it should only serve IP addresses, no route(r)s.
Otherwise, Windows clients experience network connectivity issues, due
to them using the address set in DHCP option 3 as default gateway.

Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
2016-05-17 19:34:25 -04:00
..
arp-util.c util-lib: split out fd-related operations into fd-util.[ch] 2015-10-25 13:19:18 +01:00
arp-util.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
dhcp-identifier.c dhcp-identifier: un-inline dhcp_validate_duid_len 2016-05-03 12:09:38 -04:00
dhcp-identifier.h network: get rid of DUID_TYPE_RAW 2016-05-03 12:26:43 -04:00
dhcp-internal.h libsystemd-network: don't abbreviate "callback" as "cb" needlessly 2016-02-20 22:42:29 +01:00
dhcp-lease-internal.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
dhcp-network.c util-lib: split out fd-related operations into fd-util.[ch] 2015-10-25 13:19:18 +01:00
dhcp-option.c tree-wide: make ++/-- usage consistent WRT spacing 2016-02-22 20:32:04 -08:00
dhcp-packet.c tree-wide: make ++/-- usage consistent WRT spacing 2016-02-22 20:32:04 -08:00
dhcp-protocol.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
dhcp-server-internal.h networkd: Add EmitRouter= option for DHCP Server (#3251) 2016-05-17 19:34:25 -04:00
dhcp6-internal.h sd-dhcp6-client: add log_errno macro and improve debug messages a bit 2016-05-15 19:57:00 -04:00
dhcp6-lease-internal.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
dhcp6-network.c sd-dhcp6-client: bind to link-local address 2015-11-17 14:17:41 +01:00
dhcp6-option.c Merge pull request #2589 from keszybz/resolve-tool-2 2016-02-13 11:15:41 +01:00
dhcp6-protocol.h DHCP DUID, IAID configuration options 2016-03-30 16:33:55 -07:00
icmp6-util.c sd-ndisc: better validate RA packets 2015-11-25 18:30:31 +01:00
icmp6-util.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
lldp-internal.h sd-lldp: filter out LLDP messages coming from our own MAC address 2016-02-21 20:40:58 +01:00
lldp-neighbor.c lldp: move public macros to sd-lldp.h and namespace them 2016-03-24 16:41:48 +01:00
lldp-neighbor.h sd-lldp: rework sd-lldp API 2016-02-21 20:40:56 +01:00
lldp-network.c sd-lldp: fix how we create the LLDP listening socket 2016-02-20 22:42:29 +01:00
lldp-network.h tree-wide: place #pragma once at the same place everywhere 2016-02-20 22:42:29 +01:00
Makefile sd-network: add new library 2014-02-28 01:01:13 +01:00
network-internal.c network: Make sure we log about parse errors for ifname lists 2016-05-09 15:45:31 +02:00
network-internal.h tree-wide: port more code to use ifname_valid() 2016-05-09 15:45:31 +02:00
sd-dhcp-client.c dh-dhcp{,6}-client: change the semantics of DUID setting 2016-05-03 12:12:04 -04:00
sd-dhcp-lease.c core: avoid compiler warning when compiling with -fexceptions 2016-02-27 13:40:50 +01:00
sd-dhcp-server.c networkd: Add EmitRouter= option for DHCP Server (#3251) 2016-05-17 19:34:25 -04:00
sd-dhcp6-client.c sd-dhcp6-client: add log_errno macro and improve debug messages a bit 2016-05-15 19:57:00 -04:00
sd-dhcp6-lease.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
sd-ipv4acd.c tree-wide: minor formatting inconsistency cleanups 2016-02-23 14:20:34 -08:00
sd-ipv4ll.c tree-wide: minor formatting inconsistency cleanups 2016-02-23 14:20:34 -08:00
sd-lldp.c lldp: fix starting ttl timer for lldp neighbor 2016-03-14 17:02:19 +01:00
sd-ndisc.c libsystemd-network: sd-event uses 64bit priorities, expose them in the APIs as such 2016-02-20 22:42:29 +01:00
test-acd.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-dhcp-client.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-dhcp-option.c Merge pull request #2589 from keszybz/resolve-tool-2 2016-02-13 11:15:41 +01:00
test-dhcp-server.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-dhcp6-client.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-ipv4ll-manual.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-ipv4ll.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-lldp.c lldp: move public macros to sd-lldp.h and namespace them 2016-03-24 16:41:48 +01:00
test-ndisc-rs.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00