aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-07-01 19:09:52 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2019-02-18 17:11:52 +0100
commit1297992885b50dd2011934b67c20eaaba7694bd1 (patch)
tree9e28510f0eebabd9e27fb792a1c23180b4434147 /include/osmocom
parent6b4895ff53b0fe8880dadf7c8d759a63938bbb3e (diff)
WIP: gprs_ns: Add code for SNS-SIZE and SNS-CONFIG encoding
Diffstat (limited to 'include/osmocom')
-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 fc743366..15d92d37 100644
--- a/include/osmocom/gprs/protocol/gsm_08_16.h
+++ b/include/osmocom/gprs/protocol/gsm_08_16.h
@@ -17,6 +17,15 @@ struct gprs_ns_hdr {
uint8_t data[0]; /*!< variable-length payload */
} __attribute__((packed));
+
+/*! Section 10.3.2c List of IP4 Elements */
+struct gprs_ns_ie_ip4_elem {
+ uint32_t 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) */