aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/gprs_ns2_internal.h
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-11-19 00:41:47 +0100
committerAlexander Couzens <lynxis@fe80.eu>2020-11-24 03:53:22 +0100
commitfc3dd1fb14f224c9f859a4123bccc390d717c813 (patch)
tree0eb464e778db8944260fe7d931f622095ad40b2d /src/gb/gprs_ns2_internal.h
parentns2: add support for frame relay (diff)
downloadlibosmocore-fc3dd1fb14f224c9f859a4123bccc390d717c813.tar.xz
libosmocore-fc3dd1fb14f224c9f859a4123bccc390d717c813.zip
ns2: implement link sharing selector
Change-Id: I212fa1a65e8c16cf1e525d1962d5689446c7e49e
Diffstat (limited to 'src/gb/gprs_ns2_internal.h')
-rw-r--r--src/gb/gprs_ns2_internal.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2_internal.h b/src/gb/gprs_ns2_internal.h
index 6ea2fcc2..de0f5d43 100644
--- a/src/gb/gprs_ns2_internal.h
+++ b/src/gb/gprs_ns2_internal.h
@@ -118,6 +118,9 @@ struct gprs_ns2_nse {
/*! llist head to hold all nsvc */
struct llist_head nsvc;
+ /*! count all active NSVCs with data capabilities */
+ int nsvc_data_count;
+
/*! true if this NSE was created by VTY or pcu socket) */
bool persistent;
@@ -154,7 +157,10 @@ struct gprs_ns2_vc {
/*! signalling weight. 0 = don't use for signalling (BVCI == 0)*/
uint8_t sig_weight;
- /*! signaling weight. 0 = don't use for user data (BVCI != 0) */
+ /*! signalling packet counter for the load sharing function */
+ uint8_t sig_counter;
+
+ /*! data weight. 0 = don't use for user data (BVCI != 0) */
uint8_t data_weight;
/*! can be used by the bind/driver of the virtual circuit. e.g. ipv4/ipv6/frgre/e1 */