]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dhcp-protocol: Option Overload (52) DHCP option value takes flags
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 17 Mar 2026 17:00:08 +0000 (02:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 Apr 2026 23:31:07 +0000 (08:31 +0900)
src/libsystemd-network/dhcp-protocol.h

index 425f730894d2bd8121bb30570e657471145f3400..659936c88a65e21534375fa82ad89a4cf7641203 100644 (file)
@@ -89,10 +89,12 @@ enum {
         DHCPTLS                                 = 18, /* [RFC7724] */
 };
 
-enum {
-        DHCP_OVERLOAD_FILE                      = 1,
-        DHCP_OVERLOAD_SNAME                     = 2,
-};
+typedef enum {
+        DHCP_OVERLOAD_NONE                      = 0,
+        DHCP_OVERLOAD_FILE                      = 1 << 0,
+        DHCP_OVERLOAD_SNAME                     = 1 << 1,
+        _DHCP_OVERLOAD_ALL                      = DHCP_OVERLOAD_FILE | DHCP_OVERLOAD_SNAME,
+} DHCPOptionOverload;
 
 #define DHCP_MAX_FQDN_LENGTH 255