NetworkManager/src/tests/client
Beniamino Galvani e12e5a2ad4 libnm,nmcli: add ipvx.dhcp-dscp property
Currently the internal DHCP client sets traffic class "CS6" in the DS
field of the IP header for outgoing packets.

dhclient sets the field according to the definition of TOS (RFC 1349),
which was was deprecated in 1998 by RFC 2474 in favor of DSCP.

Introduce a new property IPvX.dhcp-dscp (currently valid only for
IPv4) to specify a custom DSCP value for DHCP backends that support it
(currently, only the internal one).

Define the default value to CS0, because:

 - section 4.9 of RFC 4594 specifies that DHCP should use the standard
   (CS0 = 0) service class;

 - section 3.2 says that class CS6 is for "transmitting packets
   between network devices (routers) that require control (routing)
   information to be exchanged between nodes", listing "OSPF, BGP,
   ISIS, RIP" as examples of such traffic. Furthermore, it says that:

     User traffic is not allowed to use this service class.  By user
     traffic, we mean packet flows that originate from user-controlled
     end points that are connected to the network.

- we got reports of some Cisco switches dropping DHCP packets because
  of the CS6 marking.

(cherry picked from commit fcd907e062)
2024-02-06 17:02:30 +01:00
..
terminal-colors.d client/tests: move "clients/tests/test-client.py" to "src/tests/client/" 2021-03-15 17:10:55 +01:00
test-client.check-on-disk libnm,nmcli: add ipvx.dhcp-dscp property 2024-02-06 17:02:30 +01:00
meson.build tests: increase timeout for check-local-tests-cloud-setup test with meson 2023-05-19 16:02:29 +02:00
test-client.py client/tests: add checks to "test-client.py" 2023-11-15 09:34:45 +01:00
test-client.sh tests/client: test nm-cloud-setup 2023-03-21 23:35:42 +01:00