From 17a642d8ff309119532bf85f4ad95d1b049047f0 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 1 Jul 2018 19:09:52 +0200 Subject: gprs_ns: Add code for SNS-SIZE and SNS-CONFIG encoding Modern NS specifications contain a SNS (Sub Network Service) for negotiating IP/port/weight parameters of NS-over-IP links dynamically. This patch adds message encoding routines for SNS-CONFIG, SNS-SIZE and their respective acknowledgements. Related: OS#3372 Change-Id: I5c47e1c3c10deb89a7470ee2c03adfc174accc93 --- include/osmocom/gprs/protocol/gsm_08_16.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'include/osmocom') 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) */ -- cgit v1.2.3