summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/fw_context.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/fw_context.h b/include/fw_context.h
index 295b54d..6a7ec1a 100644
--- a/include/fw_context.h
+++ b/include/fw_context.h
@@ -28,6 +28,15 @@
#include "list.h"
#include "auth.h"
+enum ibft_ip_prefix_origin {
+ IBFT_IP_PREFIX_ORIGIN_OTHER = 0,
+ IBFT_IP_PREFIX_ORIGIN_MANUAL,
+ IBFT_IP_PREFIX_ORIGIN_WELL_KNOWN,
+ IBFT_IP_PREFIX_ORIGIN_DHCP,
+ IBFT_IP_PREFIX_ORIGIN_ROUTER_ADVERTISEMENT,
+ IBFT_IP_PREFIX_ORIGIN_UNCHANGED = 16
+};
+
struct boot_context {
struct list_head list;
char boot_root[BOOT_NAME_MAXLEN];
@@ -48,7 +57,7 @@ struct boot_context {
char initiatorname[TARGET_NAME_MAXLEN + 1];
/* network settings */
- char origin[2];
+ enum ibft_ip_prefix_origin origin;
char dhcp[NI_MAXHOST];
char iface[IF_NAMESIZE];
char mac[18];