aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/gprs/protocol/gsm_08_16.h
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-07-12 13:45:50 +0200
committerlynxis lazus <lynxis@fe80.eu>2020-09-15 11:54:41 +0000
commit6a161497cfd8cacfef10c2e81cff85a45447e107 (patch)
tree0d068f1a51d256545183a9f2690b75099c6c050e /include/osmocom/gprs/protocol/gsm_08_16.h
parentf6db7653270f4c926cd64f2597f19fd657520ae8 (diff)
Gb: add a second NS implementation
Reimplement NS with FSM. Change-Id: I3525beef205588dfab9d3880a34115f1a2676e48
Diffstat (limited to 'include/osmocom/gprs/protocol/gsm_08_16.h')
-rw-r--r--include/osmocom/gprs/protocol/gsm_08_16.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/osmocom/gprs/protocol/gsm_08_16.h b/include/osmocom/gprs/protocol/gsm_08_16.h
index 95efcb6d..e035ebf0 100644
--- a/include/osmocom/gprs/protocol/gsm_08_16.h
+++ b/include/osmocom/gprs/protocol/gsm_08_16.h
@@ -6,6 +6,7 @@
#pragma once
#include <stdint.h>
+#include <arpa/inet.h>
/*! \addtogroup libgb
* @{
@@ -26,6 +27,14 @@ struct gprs_ns_ie_ip4_elem {
uint8_t data_weight;
} __attribute__ ((packed));
+/*! Section 10.3.2d List of IP6 Elements */
+struct gprs_ns_ie_ip6_elem {
+ struct in6_addr ip_addr;
+ uint16_t udp_port;
+ uint8_t sig_weight;
+ uint8_t data_weight;
+} __attribute__ ((packed));
+
extern const struct value_string gprs_ns_pdu_strings[];
/*! NS PDU Type (TS 08.16, Section 10.3.7, Table 14) */