Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 1 | /*! \file gprs_ns2.h */ |
| 2 | |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include <stdint.h> |
| 7 | #include <netinet/in.h> |
| 8 | |
| 9 | #include <osmocom/core/prim.h> |
Alexander Couzens | b3b837c | 2020-10-27 15:12:25 +0100 | [diff] [blame] | 10 | #include <osmocom/gprs/protocol/gsm_08_16.h> |
Alexander Couzens | 841817e | 2020-11-19 00:41:29 +0100 | [diff] [blame] | 11 | #include <osmocom/gprs/frame_relay.h> |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 12 | |
| 13 | struct osmo_sockaddr; |
Alexander Couzens | 1fac6f7 | 2020-10-01 19:08:38 +0200 | [diff] [blame] | 14 | struct osmo_sockaddr_str; |
Alexander Couzens | 841817e | 2020-11-19 00:41:29 +0100 | [diff] [blame] | 15 | struct osmo_fr_network; |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 16 | |
| 17 | struct gprs_ns2_inst; |
| 18 | struct gprs_ns2_nse; |
| 19 | struct gprs_ns2_vc; |
| 20 | struct gprs_ns2_vc_bind; |
| 21 | struct gprs_ns2_vc_driver; |
| 22 | struct gprs_ns_ie_ip4_elem; |
| 23 | struct gprs_ns_ie_ip6_elem; |
| 24 | |
| 25 | enum gprs_ns2_vc_mode { |
Harald Welte | fa2d66c | 2020-10-17 13:09:34 +0200 | [diff] [blame] | 26 | /*! The VC will use RESET/BLOCK/UNBLOCK to start the connection and do ALIVE/ACK. |
| 27 | * This is what is needed for Frame Relay transport, and if you use a R97/R99 Gb |
| 28 | * interface over an IP transport (never standardized by 3GPP) */ |
| 29 | NS2_VC_MODE_BLOCKRESET, |
| 30 | /*! The VC will only use ALIVE/ACK (no RESET/BLOCK/UNBLOCK), which is for Gb-IP |
| 31 | * interface compliant to 3GPP Rel=4 or later. */ |
| 32 | NS2_VC_MODE_ALIVE, |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 33 | }; |
| 34 | |
Alexander Couzens | d923cff | 2020-12-01 01:03:52 +0100 | [diff] [blame] | 35 | enum gprs_ns2_dialect { |
| 36 | NS2_DIALECT_UNDEF, |
| 37 | NS2_DIALECT_STATIC_ALIVE, |
| 38 | NS2_DIALECT_STATIC_RESETBLOCK, |
| 39 | NS2_DIALECT_IPACCESS, |
| 40 | NS2_DIALECT_SNS, |
| 41 | }; |
| 42 | |
Alexander Couzens | 24a14ac | 2020-11-19 02:34:49 +0100 | [diff] [blame] | 43 | /*! Osmocom NS link layer types */ |
| 44 | enum gprs_ns2_ll { |
| 45 | GPRS_NS2_LL_UDP, /*!< NS/UDP/IP */ |
Alexander Couzens | 24a14ac | 2020-11-19 02:34:49 +0100 | [diff] [blame] | 46 | GPRS_NS2_LL_FR, /*!< NS/FR */ |
| 47 | GPRS_NS2_LL_FR_GRE, /*!< NS/FR/GRE/IP */ |
| 48 | }; |
| 49 | |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 50 | /*! Osmocom NS primitives according to 48.016 5.2 Service primitves */ |
| 51 | enum gprs_ns2_prim { |
| 52 | PRIM_NS_UNIT_DATA, |
| 53 | PRIM_NS_CONGESTION, |
| 54 | PRIM_NS_STATUS, |
| 55 | }; |
| 56 | |
Alexander Couzens | 0ab028c | 2020-11-04 02:41:44 +0100 | [diff] [blame] | 57 | extern const struct value_string gprs_ns2_prim_strs[]; |
Harald Welte | a24e7ee | 2020-11-29 17:38:48 +0100 | [diff] [blame] | 58 | extern const struct value_string gprs_ns2_lltype_strs[]; |
Alexander Couzens | 2498f1d | 2020-10-27 01:09:01 +0100 | [diff] [blame] | 59 | |
| 60 | /*! Obtain a human-readable string for NS primitives */ |
| 61 | static inline const char *gprs_ns2_prim_str(enum gprs_ns2_prim val) |
Alexander Couzens | 0ab028c | 2020-11-04 02:41:44 +0100 | [diff] [blame] | 62 | { return get_value_string(gprs_ns2_prim_strs, val); } |
Alexander Couzens | 2498f1d | 2020-10-27 01:09:01 +0100 | [diff] [blame] | 63 | |
Harald Welte | a24e7ee | 2020-11-29 17:38:48 +0100 | [diff] [blame] | 64 | /*! Obtain a human-readable string for NS link-layer type */ |
| 65 | static inline const char *gprs_ns2_lltype_str(enum gprs_ns2_ll val) |
| 66 | { return get_value_string(gprs_ns2_lltype_strs, val); } |
| 67 | |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 68 | /*! Osmocom NS primitives according to 48.016 5.2.2.4 Service primitves */ |
| 69 | enum gprs_ns2_congestion_cause { |
| 70 | NS_CONG_CAUSE_BACKWARD_BEGIN, |
| 71 | NS_CONG_CAUSE_BACKWARD_END, |
| 72 | NS_CONG_CAUSE_FORWARD_BEGIN, |
| 73 | NS_CONG_CAUSE_FORWARD_END, |
| 74 | }; |
| 75 | |
| 76 | /*! Osmocom NS primitives according to 48.016 5.2.2.6 Service primitves */ |
| 77 | enum gprs_ns2_affecting_cause { |
| 78 | NS_AFF_CAUSE_VC_FAILURE, |
| 79 | NS_AFF_CAUSE_VC_RECOVERY, |
| 80 | NS_AFF_CAUSE_FAILURE, |
| 81 | NS_AFF_CAUSE_RECOVERY, |
| 82 | /* osmocom own causes */ |
| 83 | NS_AFF_CAUSE_SNS_CONFIGURED, |
| 84 | NS_AFF_CAUSE_SNS_FAILURE, |
Alexander Couzens | e769f52 | 2020-12-07 07:37:07 +0100 | [diff] [blame^] | 85 | NS_AFF_CAUSE_SNS_NO_ENDPOINTS, |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 86 | }; |
| 87 | |
Alexander Couzens | 2498f1d | 2020-10-27 01:09:01 +0100 | [diff] [blame] | 88 | extern const struct value_string gprs_ns2_aff_cause_prim_strs[]; |
| 89 | |
| 90 | /*! Obtain a human-readable string for NS affective cause in primitives */ |
| 91 | static inline const char *gprs_ns2_aff_cause_prim_str(enum gprs_ns2_affecting_cause val) |
| 92 | { return get_value_string(gprs_ns2_aff_cause_prim_strs, val); } |
| 93 | |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 94 | /*! Osmocom NS primitives according to 48.016 5.2.2.7 Service primitves */ |
| 95 | enum gprs_ns2_change_ip_endpoint { |
| 96 | NS_ENDPOINT_NO_CHANGE, |
| 97 | NS_ENDPOINT_REQUEST_CHANGE, |
| 98 | NS_ENDPOINT_CONFIRM_CHANGE, |
| 99 | }; |
| 100 | |
Alexander Couzens | b3b837c | 2020-10-27 15:12:25 +0100 | [diff] [blame] | 101 | extern const struct value_string gprs_ns2_cause_strs[]; |
| 102 | |
| 103 | /*! Obtain a human-readable string for NS primitives */ |
| 104 | static inline const char *gprs_ns2_cause_str(enum ns_cause val) |
| 105 | { return get_value_string(gprs_ns2_cause_strs, val); } |
| 106 | |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 107 | struct osmo_gprs_ns2_prim { |
| 108 | struct osmo_prim_hdr oph; |
| 109 | |
| 110 | uint16_t nsei; |
| 111 | uint16_t bvci; |
| 112 | |
| 113 | union { |
| 114 | struct { |
| 115 | enum gprs_ns2_change_ip_endpoint change; |
Alexander Couzens | fc3dd1f | 2020-11-19 00:41:47 +0100 | [diff] [blame] | 116 | uint32_t link_selector; |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 117 | /* TODO: implement resource distribution |
| 118 | * add place holder for the link selector */ |
| 119 | long long _resource_distribution_placeholder1; |
| 120 | long long _resource_distribution_placeholder2; |
| 121 | long long _resource_distribution_placeholder3; |
| 122 | } unitdata; |
| 123 | struct { |
| 124 | enum gprs_ns2_congestion_cause cause; |
| 125 | } congestion; |
| 126 | struct { |
| 127 | enum gprs_ns2_affecting_cause cause; |
Daniel Willmann | 15c09a8 | 2020-11-03 23:05:43 +0100 | [diff] [blame] | 128 | char *nsvc; |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 129 | /* 48.016 5.2.2.6 transfer capability */ |
| 130 | int transfer; |
Alexander Couzens | da0a285 | 2020-10-01 23:24:07 +0200 | [diff] [blame] | 131 | /* osmocom specific */ |
| 132 | /* Persistent NSE/NSVC are configured by vty */ |
| 133 | bool persistent; |
| 134 | /* Only true on the first time it's available. |
| 135 | * Allow the BSSGP layer to reset persistent NSE */ |
| 136 | bool first; |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 137 | } status; |
| 138 | } u; |
| 139 | }; |
| 140 | |
| 141 | /* instance */ |
| 142 | struct gprs_ns2_inst *gprs_ns2_instantiate(void *ctx, osmo_prim_cb cb, void *cb_data); |
| 143 | void gprs_ns2_free(struct gprs_ns2_inst *inst); |
| 144 | int gprs_ns2_dynamic_create_nse(struct gprs_ns2_inst *nsi, bool create_nse); |
| 145 | |
| 146 | /* Entrypoint for primitives from the NS USER */ |
| 147 | int gprs_ns2_recv_prim(struct gprs_ns2_inst *nsi, struct osmo_prim_hdr *oph); |
| 148 | |
Alexander Couzens | 6cb5d5f | 2020-10-11 23:23:31 +0200 | [diff] [blame] | 149 | /*! a callback to iterate over all NSVC */ |
| 150 | typedef int (*gprs_ns2_foreach_nsvc_cb)(struct gprs_ns2_vc *nsvc, void *ctx); |
| 151 | |
| 152 | int gprs_ns2_nse_foreach_nsvc(struct gprs_ns2_nse *nse, |
| 153 | gprs_ns2_foreach_nsvc_cb cb, void *cb_data); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 154 | struct gprs_ns2_nse *gprs_ns2_nse_by_nsei(struct gprs_ns2_inst *nsi, uint16_t nsei); |
Alexander Couzens | aac9016 | 2020-11-19 02:44:04 +0100 | [diff] [blame] | 155 | struct gprs_ns2_nse *gprs_ns2_create_nse(struct gprs_ns2_inst *nsi, uint16_t nsei, |
Alexander Couzens | d923cff | 2020-12-01 01:03:52 +0100 | [diff] [blame] | 156 | enum gprs_ns2_ll linklayer, |
| 157 | enum gprs_ns2_dialect dialect); |
Alexander Couzens | 05e7f7d | 2020-10-11 19:51:46 +0200 | [diff] [blame] | 158 | uint16_t gprs_ns2_nse_nsei(struct gprs_ns2_nse *nse); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 159 | void gprs_ns2_free_nse(struct gprs_ns2_nse *nse); |
Alexander Couzens | 4b6c8af | 2020-10-11 20:15:25 +0200 | [diff] [blame] | 160 | void gprs_ns2_free_nses(struct gprs_ns2_inst *nsi); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 161 | |
| 162 | /* create vc */ |
| 163 | void gprs_ns2_free_nsvc(struct gprs_ns2_vc *nsvc); |
Alexander Couzens | 4755879 | 2020-12-06 03:16:11 +0100 | [diff] [blame] | 164 | void gprs_ns2_free_nsvcs(struct gprs_ns2_nse *nse); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 165 | struct gprs_ns2_vc *gprs_ns2_nsvc_by_nsvci(struct gprs_ns2_inst *nsi, uint16_t nsvci); |
| 166 | |
Alexander Couzens | aaa55a6 | 2020-12-03 06:02:03 +0100 | [diff] [blame] | 167 | /* generic VL driver */ |
| 168 | struct gprs_ns2_vc_bind *gprs_ns2_bind_by_name(struct gprs_ns2_inst *nsi, |
| 169 | const char *name); |
| 170 | |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 171 | /* IP VL driver */ |
| 172 | int gprs_ns2_ip_bind(struct gprs_ns2_inst *nsi, |
Alexander Couzens | aaa55a6 | 2020-12-03 06:02:03 +0100 | [diff] [blame] | 173 | const char *name, |
Vadim Yanitskiy | a07f25e | 2020-10-09 21:47:01 +0700 | [diff] [blame] | 174 | const struct osmo_sockaddr *local, |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 175 | int dscp, |
| 176 | struct gprs_ns2_vc_bind **result); |
Alexander Couzens | 4f60845 | 2020-10-11 18:41:24 +0200 | [diff] [blame] | 177 | struct gprs_ns2_vc_bind *gprs_ns2_ip_bind_by_sockaddr(struct gprs_ns2_inst *nsi, |
| 178 | const struct osmo_sockaddr *sockaddr); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 179 | |
Alexander Couzens | 841817e | 2020-11-19 00:41:29 +0100 | [diff] [blame] | 180 | /* FR VL driver */ |
| 181 | struct gprs_ns2_vc_bind *gprs_ns2_fr_bind_by_netif( |
| 182 | struct gprs_ns2_inst *nsi, |
| 183 | const char *netif); |
| 184 | const char *gprs_ns2_fr_bind_netif(struct gprs_ns2_vc_bind *bind); |
| 185 | int gprs_ns2_fr_bind(struct gprs_ns2_inst *nsi, |
Alexander Couzens | aaa55a6 | 2020-12-03 06:02:03 +0100 | [diff] [blame] | 186 | const char *name, |
Alexander Couzens | 841817e | 2020-11-19 00:41:29 +0100 | [diff] [blame] | 187 | const char *netif, |
| 188 | struct osmo_fr_network *fr_network, |
| 189 | enum osmo_fr_role fr_role, |
| 190 | struct gprs_ns2_vc_bind **result); |
| 191 | int gprs_ns2_is_fr_bind(struct gprs_ns2_vc_bind *bind); |
| 192 | struct gprs_ns2_vc *gprs_ns2_fr_nsvc_by_dlci(struct gprs_ns2_vc_bind *bind, uint16_t dlci); |
| 193 | struct gprs_ns2_vc *gprs_ns2_fr_connect(struct gprs_ns2_vc_bind *bind, |
Alexander Couzens | ebcbd72 | 2020-12-03 06:11:39 +0100 | [diff] [blame] | 194 | struct gprs_ns2_nse *nse, |
| 195 | uint16_t nsvci, |
| 196 | uint16_t dlci); |
| 197 | struct gprs_ns2_vc *gprs_ns2_fr_connect2(struct gprs_ns2_vc_bind *bind, |
Alexander Couzens | 841817e | 2020-11-19 00:41:29 +0100 | [diff] [blame] | 198 | uint16_t nsei, |
| 199 | uint16_t nsvci, |
| 200 | uint16_t dlci); |
| 201 | |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 202 | /* create a VC connection */ |
| 203 | struct gprs_ns2_vc *gprs_ns2_ip_connect(struct gprs_ns2_vc_bind *bind, |
Vadim Yanitskiy | a07f25e | 2020-10-09 21:47:01 +0700 | [diff] [blame] | 204 | const struct osmo_sockaddr *remote, |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 205 | struct gprs_ns2_nse *nse, |
| 206 | uint16_t nsvci); |
| 207 | |
| 208 | struct gprs_ns2_vc *gprs_ns2_ip_connect2(struct gprs_ns2_vc_bind *bind, |
Vadim Yanitskiy | a07f25e | 2020-10-09 21:47:01 +0700 | [diff] [blame] | 209 | const struct osmo_sockaddr *remote, |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 210 | uint16_t nsei, |
Alexander Couzens | d923cff | 2020-12-01 01:03:52 +0100 | [diff] [blame] | 211 | uint16_t nsvci, |
| 212 | enum gprs_ns2_dialect dialect); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 213 | struct gprs_ns2_vc *gprs_ns2_ip_connect_inactive(struct gprs_ns2_vc_bind *bind, |
Vadim Yanitskiy | a07f25e | 2020-10-09 21:47:01 +0700 | [diff] [blame] | 214 | const struct osmo_sockaddr *remote, |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 215 | struct gprs_ns2_nse *nse, |
| 216 | uint16_t nsvci); |
| 217 | |
| 218 | void gprs_ns2_free_bind(struct gprs_ns2_vc_bind *bind); |
Alexander Couzens | 896fcd5 | 2020-10-11 19:52:36 +0200 | [diff] [blame] | 219 | void gprs_ns2_free_binds(struct gprs_ns2_inst *nsi); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 220 | |
| 221 | /* create a VC SNS connection */ |
Alexander Couzens | e769f52 | 2020-12-07 07:37:07 +0100 | [diff] [blame^] | 222 | int gprs_ns2_sns_count(struct gprs_ns2_nse *nse); |
| 223 | int gprs_ns2_sns_add_endpoint(struct gprs_ns2_nse *nse, |
| 224 | const struct osmo_sockaddr *saddr); |
| 225 | int gprs_ns2_sns_del_endpoint(struct gprs_ns2_nse *nse, |
| 226 | const struct osmo_sockaddr *saddr); |
Alexander Couzens | 125298f | 2020-10-11 21:22:42 +0200 | [diff] [blame] | 227 | const struct osmo_sockaddr *gprs_ns2_nse_sns_remote(struct gprs_ns2_nse *nse); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 228 | |
Alexander Couzens | d33512b | 2020-10-11 21:42:11 +0200 | [diff] [blame] | 229 | const struct osmo_sockaddr *gprs_ns2_ip_vc_remote(const struct gprs_ns2_vc *nsvc); |
Alexander Couzens | 979f5f5 | 2020-10-11 21:01:48 +0200 | [diff] [blame] | 230 | const struct osmo_sockaddr *gprs_ns2_ip_vc_local(const struct gprs_ns2_vc *nsvc); |
Alexander Couzens | d420ea9 | 2020-10-12 01:11:05 +0200 | [diff] [blame] | 231 | bool gprs_ns2_ip_vc_equal(const struct gprs_ns2_vc *nsvc, |
| 232 | const struct osmo_sockaddr *local, |
| 233 | const struct osmo_sockaddr *remote, |
| 234 | uint16_t nsvci); |
Alexander Couzens | 9a4cf27 | 2020-10-11 20:48:04 +0200 | [diff] [blame] | 235 | const struct osmo_sockaddr *gprs_ns2_ip_bind_sockaddr(struct gprs_ns2_vc_bind *bind); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 236 | int gprs_ns2_is_ip_bind(struct gprs_ns2_vc_bind *bind); |
| 237 | int gprs_ns2_ip_bind_set_dscp(struct gprs_ns2_vc_bind *bind, int dscp); |
Alexander Couzens | 38b19e8 | 2020-09-23 23:56:37 +0200 | [diff] [blame] | 238 | struct gprs_ns2_vc *gprs_ns2_nsvc_by_sockaddr_bind( |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 239 | struct gprs_ns2_vc_bind *bind, |
Vadim Yanitskiy | a07f25e | 2020-10-09 21:47:01 +0700 | [diff] [blame] | 240 | const struct osmo_sockaddr *saddr); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 241 | |
| 242 | int gprs_ns2_frgre_bind(struct gprs_ns2_inst *nsi, |
Alexander Couzens | aaa55a6 | 2020-12-03 06:02:03 +0100 | [diff] [blame] | 243 | const char *name, |
Vadim Yanitskiy | a07f25e | 2020-10-09 21:47:01 +0700 | [diff] [blame] | 244 | const struct osmo_sockaddr *local, |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 245 | int dscp, |
| 246 | struct gprs_ns2_vc_bind **result); |
| 247 | int gprs_ns2_is_frgre_bind(struct gprs_ns2_vc_bind *bind); |
Alexander Couzens | 841817e | 2020-11-19 00:41:29 +0100 | [diff] [blame] | 248 | uint16_t gprs_ns2_fr_nsvc_dlci(struct gprs_ns2_vc *nsvc); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 249 | |
Alexander Couzens | 38b19e8 | 2020-09-23 23:56:37 +0200 | [diff] [blame] | 250 | struct gprs_ns2_vc *gprs_ns2_nsvc_by_sockaddr_nse( |
| 251 | struct gprs_ns2_nse *nse, |
Vadim Yanitskiy | a07f25e | 2020-10-09 21:47:01 +0700 | [diff] [blame] | 252 | const struct osmo_sockaddr *sockaddr); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 253 | void gprs_ns2_start_alive_all_nsvcs(struct gprs_ns2_nse *nse); |
Daniel Willmann | f128654 | 2020-11-03 23:03:33 +0100 | [diff] [blame] | 254 | |
| 255 | /* VC information */ |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 256 | const char *gprs_ns2_ll_str(struct gprs_ns2_vc *nsvc); |
| 257 | char *gprs_ns2_ll_str_buf(char *buf, size_t buf_len, struct gprs_ns2_vc *nsvc); |
| 258 | char *gprs_ns2_ll_str_c(const void *ctx, struct gprs_ns2_vc *nsvc); |
Daniel Willmann | f128654 | 2020-11-03 23:03:33 +0100 | [diff] [blame] | 259 | const char *gprs_ns2_nsvc_state_name(struct gprs_ns2_vc *nsvc); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 260 | |
| 261 | /* vty */ |
Vadim Yanitskiy | a07f25e | 2020-10-09 21:47:01 +0700 | [diff] [blame] | 262 | int gprs_ns2_vty_init(struct gprs_ns2_inst *nsi, |
| 263 | const struct osmo_sockaddr_str *default_bind); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 264 | int gprs_ns2_vty_create(); |
Alexander Couzens | 6a16149 | 2020-07-12 13:45:50 +0200 | [diff] [blame] | 265 | |
| 266 | /*! @} */ |