aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-10-24 15:54:28 +0200
committerHarald Welte <laforge@gnumonks.org>2017-10-24 14:33:31 +0000
commit95308596540b0733a43d9db5dc6ab0c4f5e2d08f (patch)
tree66ae35669ef7828542fe973e6a70d8b1da807d6d /include
parentc513c0f562b193a8e710b904b980bfa9b3d08b56 (diff)
GPRS: clarify ip/frgre union use
* add comment about underlying assumption that structs in ip/frgre union members in gprs_nsvc struct have the same memory layout * remove such assumption from gprs_ns_ll_str() * use gprs_ns_ll_str() for NSE dump Change-Id: Idcb912b7b3f7460fd2b058e16650c0bde8f757ee
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gprs/gprs_ns.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/gprs/gprs_ns.h b/include/osmocom/gprs/gprs_ns.h
index 2d2f86ed..4fb9f584 100644
--- a/include/osmocom/gprs/gprs_ns.h
+++ b/include/osmocom/gprs/gprs_ns.h
@@ -140,6 +140,8 @@ struct gprs_nsvc {
/*! which link-layer are we based on? */
enum gprs_ns_ll ll;
+ /*! make sure to always keep bts_addr as first struct member to not break the assumption
+ that those structs are similar */
union {
struct {
struct sockaddr_in bts_addr;