NetworkManager/src/nmcli
Beniamino Galvani fcd907e062 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.
2024-02-06 14:24:39 +01:00
..
agent.c nmcli: replace all uses of g_print()/g_printerr() with nmc_print()/nmc_printerr() 2023-02-08 10:11:18 +01:00
common.c all: reformat code to clang shipped with Fedora 39 2023-12-06 10:37:24 +01:00
common.h cli: Implement display of global metered state in nmcli general 2024-02-05 20:54:28 +01:00
connections.c all: use the new NMSettingConnection port-type property 2024-01-23 08:21:16 +01:00
connections.h nmcli/trivial: rename monitor functions in internal header file 2023-02-08 10:11:15 +01:00
devices.c cli: sort nmcli device output by active-connection first 2023-11-15 09:34:47 +01:00
devices.h nmcli/trivial: rename monitor functions in internal header file 2023-02-08 10:11:15 +01:00
gen-metadata-nm-settings-nmcli.c wifi: add "wifi.cloned-mac-address=stable-ssid" 2023-11-16 13:07:54 +01:00
gen-metadata-nm-settings-nmcli.xml.in libnm,nmcli: add ipvx.dhcp-dscp property 2024-02-06 14:24:39 +01:00
general.c cli: Implement display of global metered state in nmcli general 2024-02-05 20:54:28 +01:00
meson.build nmcli: rename "generate-docs-nm-settings-nmcli" to "gen-metadata-nm-settings-nmcli" 2022-10-31 09:11:30 +01:00
nmcli-completion nmcli-completion: fix support for embedded quote characters 2022-08-04 08:59:01 +02:00
nmcli.c cli: honor CLICOLOR_FORCE= variable to enable colors with nmcli 2023-09-25 09:02:17 +00:00
nmcli.h nmcli: move offline flag from NmCli to NmcConfig struct 2023-07-17 12:56:03 +02:00
polkit-agent.c nmcli: replace all uses of g_print()/g_printerr() with nmc_print()/nmc_printerr() 2023-02-08 10:11:18 +01:00
polkit-agent.h cli: move from "clients/cli/" to "src/nmcli/" 2021-03-15 17:10:54 +01:00
README.md all: add some README.md files describing the purpose of our sources 2021-08-19 17:51:11 +02:00
settings.c all: use the new NMSettingConnection Controller property 2024-01-11 00:19:14 +01:00
settings.h format: reformat source tree with clang-format 13.0 2021-11-29 09:31:09 +00:00
utils.c all: use nm_strv_empty_new() helper 2023-11-30 15:53:21 +01:00
utils.h cli: Implement display of global metered state in nmcli general 2024-02-05 20:54:28 +01:00

nmcli

The command line user interface of NetworkManager. It uses the D-Bus API of NetworkManager (via libnm).

See:

  • man 1 nmcli ([www])
  • man 7 nmcli-examples ([www])
  • man 5 nm-settings-nmcli ([www])

Try also with bash-completion!