From 2cf4f88fc8b957c15ae93a2eb3e56ebdb07a0381 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Tue, 6 Sep 2016 10:29:02 +0200 Subject: ipcpd: normal: Add operations to get and set the PCI This adds the operations needed in the normal IPCP to get and set the Protocol Control Information. It allows to allocate or release space in the current DU. The struct pci can be serialized into newly allocate space. Vice versa, a struct pci can be deserialized given a DU. It allows for decreasing the TTL in the DU and for calculating the CRC32. The TTL and CRC32 can now be selected when creating a new DIF. --- src/tools/irm/irm_ipcp_bootstrap.c | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'src/tools') diff --git a/src/tools/irm/irm_ipcp_bootstrap.c b/src/tools/irm/irm_ipcp_bootstrap.c index 3db43e6e..ba9b7e2e 100644 --- a/src/tools/irm/irm_ipcp_bootstrap.c +++ b/src/tools/irm/irm_ipcp_bootstrap.c @@ -42,8 +42,6 @@ #define DEFAULT_CEP_ID_SIZE 2 #define DEFAULT_PDU_LEN_SIZE 2 #define DEFAULT_SEQ_NO_SIZE 4 -#define DEFAULT_TTL_SIZE 1 -#define DEFAULT_CHK_SIZE 2 #define DEFAULT_MIN_PDU_SIZE 0 #define DEFAULT_MAX_PDU_SIZE 9000 #define DEFAULT_DDNS 0 @@ -62,8 +60,8 @@ static void usage() " [cep_id (default: %d)]\n" " [pdu_len (default: %d)]\n" " [seqno (default: %d)]\n" - " [ttl