aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/ipaccess.h
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2009-10-29 16:33:59 +0100
committerHarald Welte <laforge@gnumonks.org>2009-10-29 16:33:59 +0100
commitd7d1c99a5366b6d289990ef521fb5c19ea2d4b40 (patch)
treea7a05453e04832ea7371dbe2f1f17a109242b954 /openbsc/include/openbsc/ipaccess.h
parent5ea731338d9497e26b8bde1483de7c768f17c244 (diff)
ip.access: Header has a 16bit length in network byte order
This is confirmed by looking at the source of their dissector. The length can go up to 273 bytes apparently (again, according to the source of their dissector).
Diffstat (limited to 'openbsc/include/openbsc/ipaccess.h')
-rw-r--r--openbsc/include/openbsc/ipaccess.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/ipaccess.h b/openbsc/include/openbsc/ipaccess.h
index eb17167b5..395687764 100644
--- a/openbsc/include/openbsc/ipaccess.h
+++ b/openbsc/include/openbsc/ipaccess.h
@@ -4,8 +4,7 @@
#include "e1_input.h"
struct ipaccess_head {
- u_int8_t zero;
- u_int8_t len;
+ u_int16_t len; /* network byte order */
u_int8_t proto;
u_int8_t data[0];
} __attribute__ ((packed));