summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-10-31 19:47:45 +0100
committerSander Vrijders <[email protected]>2016-11-01 09:38:20 +0100
commit2d88fdaaa018d607eca5ce057dfbdf41beb6125b (patch)
treef5085671663fa6798065d283619b6e8997e0f51b /src/lib
parent72eb9eed1284643db20c45ef82365fa54fd0ef1c (diff)
downloadouroboros-2d88fdaaa018d607eca5ce057dfbdf41beb6125b.tar.gz
ouroboros-2d88fdaaa018d607eca5ce057dfbdf41beb6125b.zip
ipcpd: normal: Add policy for obtaining a flat address
This adds a policy for obtaining a flat address, and thus also the infrastructure for policies in the IPCP. The IPCP should check if the address is available; this is currently not there yet.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dif_config.proto7
-rw-r--r--src/lib/irm.c2
2 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/dif_config.proto b/src/lib/dif_config.proto
index 338634d1..7eff28ba 100644
--- a/src/lib/dif_config.proto
+++ b/src/lib/dif_config.proto
@@ -11,9 +11,10 @@ message dif_config_msg {
optional bool has_chk = 9;
optional uint32 min_pdu_size = 10;
optional uint32 max_pdu_size = 11;
+ optional uint32 addr_auth_type = 12;
// Config for shim UDP
- optional uint32 ip_addr = 12;
- optional uint32 dns_addr = 13;
+ optional uint32 ip_addr = 13;
+ optional uint32 dns_addr = 14;
// Config for the shim Ethernet LLC
- optional string if_name = 14;
+ optional string if_name = 15;
} \ No newline at end of file
diff --git a/src/lib/irm.c b/src/lib/irm.c
index c68aa0f6..b1998145 100644
--- a/src/lib/irm.c
+++ b/src/lib/irm.c
@@ -119,6 +119,7 @@ int irm_bootstrap_ipcp(pid_t api,
config.has_has_chk = true;
config.has_min_pdu_size = true;
config.has_max_pdu_size = true;
+ config.has_addr_auth_type = true;
config.addr_size = conf->addr_size;
config.cep_id_size = conf->cep_id_size;
@@ -129,6 +130,7 @@ int irm_bootstrap_ipcp(pid_t api,
config.has_chk = conf->has_chk;
config.min_pdu_size = conf->min_pdu_size;
config.max_pdu_size = conf->max_pdu_size;
+ config.addr_auth_type = conf->addr_auth_type;
break;
case IPCP_SHIM_UDP:
config.has_ip_addr = true;