libosmogb 1.9.0.196-9975
Osmocom Gb library
gsm_08_16.h
Go to the documentation of this file.
6#pragma once
7
8#include <stdint.h>
9#include <arpa/inet.h>
10#include <osmocom/core/utils.h>
11
18 uint8_t pdu_type;
19 uint8_t data[0];
20} __attribute__((packed));
21
22
25 uint32_t ip_addr;
26 uint16_t udp_port;
27 uint8_t sig_weight;
28 uint8_t data_weight;
29} __attribute__ ((packed));
30
33 struct in6_addr ip_addr;
34 uint16_t udp_port;
35 uint8_t sig_weight;
36 uint8_t data_weight;
37} __attribute__ ((packed));
38
39extern const struct value_string gprs_ns_pdu_strings[];
40
53 /* TS 48.016 Section 10.3.7, Table 10.3.7.1 */
62};
63
67 NS_IE_VCI = 0x01,
68 NS_IE_PDU = 0x02,
69 NS_IE_BVCI = 0x03,
70 NS_IE_NSEI = 0x04,
71 /* TS 48.016 Section 10.3, Table 10.3.1 */
79 NS_IE_TRANS_ID = 0xff, /* osmocom. Spec has this IE but without IEI! */
80};
81
95 /* TS 48.016 Section 10.3.2, Table 10.3.2.1 */
103};
ns_cause
NS Cause (TS 08.16, Section 10.3.2, Table 13)
Definition: gsm_08_16.h:83
ns_pdu_type
NS PDU Type (TS 08.16, Section 10.3.7, Table 14)
Definition: gsm_08_16.h:42
uint8_t sig_weight
Definition: gsm_08_16.h:35
const struct value_string gprs_ns_pdu_strings[]
Definition: gprs_ns.c:397
struct in6_addr ip_addr
Definition: gsm_08_16.h:33
uint16_t udp_port
Definition: gsm_08_16.h:34
ns_ctrl_ie
NS Control IE (TS 08.16, Section 10.3, Table 12)
Definition: gsm_08_16.h:65
uint32_t ip_addr
Definition: gsm_08_16.h:25
uint8_t data_weight
Definition: gsm_08_16.h:36
enum ns_pdu_type __attribute__
uint8_t sig_weight
Definition: gsm_08_16.h:27
uint8_t pdu_type
NS PDU type.
Definition: gsm_08_16.h:18
uint16_t udp_port
Definition: gsm_08_16.h:26
uint8_t data[0]
variable-length payload
Definition: gsm_08_16.h:19
uint8_t data_weight
Definition: gsm_08_16.h:28
@ NS_CAUSE_INVAL_NR_NS_VC
Definition: gsm_08_16.h:98
@ NS_CAUSE_BVCI_UNKNOWN
Definition: gsm_08_16.h:89
@ NS_CAUSE_INVAL_ESSENT_IE
Definition: gsm_08_16.h:93
@ NS_CAUSE_UNKN_IP_TEST_FAILED
Definition: gsm_08_16.h:102
@ NS_CAUSE_PROTO_ERR_UNSPEC
Definition: gsm_08_16.h:92
@ NS_CAUSE_INVAL_NR_IPv4_EP
Definition: gsm_08_16.h:96
@ NS_CAUSE_PDU_INCOMP_PSTATE
Definition: gsm_08_16.h:91
@ NS_CAUSE_SEM_INCORR_PDU
Definition: gsm_08_16.h:90
@ NS_CAUSE_UNKN_IP_ADDR
Definition: gsm_08_16.h:101
@ NS_CAUSE_INVAL_NR_IPv6_EP
Definition: gsm_08_16.h:97
@ NS_CAUSE_EQUIP_FAIL
Definition: gsm_08_16.h:86
@ NS_CAUSE_INVAL_WEIGH
Definition: gsm_08_16.h:99
@ NS_CAUSE_MISSING_ESSENT_IE
Definition: gsm_08_16.h:94
@ NS_CAUSE_OM_INTERVENTION
Definition: gsm_08_16.h:85
@ NS_CAUSE_NSVC_BLOCKED
Definition: gsm_08_16.h:87
@ NS_CAUSE_TRANSIT_FAIL
Definition: gsm_08_16.h:84
@ NS_CAUSE_UNKN_IP_EP
Definition: gsm_08_16.h:100
@ NS_CAUSE_NSVC_UNKNOWN
Definition: gsm_08_16.h:88
@ NS_PDUT_BLOCK_ACK
Definition: gsm_08_16.h:47
@ NS_PDUT_RESET_ACK
Definition: gsm_08_16.h:45
@ NS_PDUT_UNBLOCK_ACK
Definition: gsm_08_16.h:49
@ NS_PDUT_RESET
Definition: gsm_08_16.h:44
@ NS_PDUT_UNBLOCK
Definition: gsm_08_16.h:48
@ SNS_PDUT_CHANGE_WEIGHT
Definition: gsm_08_16.h:56
@ SNS_PDUT_CONFIG
Definition: gsm_08_16.h:57
@ SNS_PDUT_ADD
Definition: gsm_08_16.h:55
@ NS_PDUT_STATUS
Definition: gsm_08_16.h:50
@ NS_PDUT_ALIVE_ACK
Definition: gsm_08_16.h:52
@ SNS_PDUT_CONFIG_ACK
Definition: gsm_08_16.h:58
@ SNS_PDUT_SIZE
Definition: gsm_08_16.h:60
@ NS_PDUT_UNITDATA
Definition: gsm_08_16.h:43
@ SNS_PDUT_SIZE_ACK
Definition: gsm_08_16.h:61
@ NS_PDUT_BLOCK
Definition: gsm_08_16.h:46
@ SNS_PDUT_ACK
Definition: gsm_08_16.h:54
@ SNS_PDUT_DELETE
Definition: gsm_08_16.h:59
@ NS_PDUT_ALIVE
Definition: gsm_08_16.h:51
@ NS_IE_IPv6_EP_NR
Definition: gsm_08_16.h:76
@ NS_IE_IPv4_LIST
Definition: gsm_08_16.h:72
@ NS_IE_VCI
Definition: gsm_08_16.h:67
@ NS_IE_IPv4_EP_NR
Definition: gsm_08_16.h:75
@ NS_IE_IP_ADDR
Definition: gsm_08_16.h:78
@ NS_IE_NSEI
Definition: gsm_08_16.h:70
@ NS_IE_MAX_NR_NSVC
Definition: gsm_08_16.h:74
@ NS_IE_IPv6_LIST
Definition: gsm_08_16.h:73
@ NS_IE_BVCI
Definition: gsm_08_16.h:69
@ NS_IE_CAUSE
Definition: gsm_08_16.h:66
@ NS_IE_TRANS_ID
Definition: gsm_08_16.h:79
@ NS_IE_PDU
Definition: gsm_08_16.h:68
@ NS_IE_RESET_FLAG
Definition: gsm_08_16.h:77
Common header of GPRS NS.
Definition: gsm_08_16.h:17
Section 10.3.2c List of IP4 Elements.
Definition: gsm_08_16.h:24
Section 10.3.2d List of IP6 Elements.
Definition: gsm_08_16.h:32