aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp <pmaier@sysmocom.de>2016-12-05 12:44:19 +0100
committerPhilipp <pmaier@sysmocom.de>2016-12-15 14:22:37 +0100
commit99237a0c3bf62e8d50756326e8ed891f8e3bc173 (patch)
treede12198c165df6ff976af170cb2c1ad36b0a4a59
parent220998d8b87c3e74dc97b758ef5e9f5f676a5bf5 (diff)
LLC: Fixup element order in LLC-XID
When the LLC-XID request is constructed the order of the elements in the TLV structure is reversed. This is in theory not a problem, but differs from what we know from our practical experience. This commit fixes the problem. Change-Id: I1d71c947350d3c5a85ff36b71c1b8f036071d162
-rw-r--r--openbsc/src/gprs/gprs_llc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c
index e5a80e56b..021502932 100644
--- a/openbsc/src/gprs/gprs_llc.c
+++ b/openbsc/src/gprs/gprs_llc.c
@@ -77,9 +77,9 @@ static int gprs_llc_generate_xid(uint8_t *bytes, int bytes_len,
xid_n201i.data_len = 2;
/* Add locally managed XID Fields */
- llist_add(&xid_n201i.list, &xid_fields);
- llist_add(&xid_n201u.list, &xid_fields);
llist_add(&xid_version.list, &xid_fields);
+ llist_add(&xid_n201u.list, &xid_fields);
+ llist_add(&xid_n201i.list, &xid_fields);
/* Append layer 3 XID field (if present) */
if (l3_xid_field) {