usb: gadgetfs: restrict upper bound on device configuration size
[linux/fpc-iii.git] / include / net / gtp.h
blob6398891b99ba0f82cbbf626b79be651f6fbf4c4f
1 #ifndef _GTP_H_
2 #define _GTP_H_
4 /* General GTP protocol related definitions. */
6 #define GTP0_PORT 3386
7 #define GTP1U_PORT 2152
9 #define GTP_TPDU 255
11 struct gtp0_header { /* According to GSM TS 09.60. */
12 __u8 flags;
13 __u8 type;
14 __be16 length;
15 __be16 seq;
16 __be16 flow;
17 __u8 number;
18 __u8 spare[3];
19 __be64 tid;
20 } __attribute__ ((packed));
22 struct gtp1_header { /* According to 3GPP TS 29.060. */
23 __u8 flags;
24 __u8 type;
25 __be16 length;
26 __be32 tid;
27 } __attribute__ ((packed));
29 #define GTP1_F_NPDU 0x01
30 #define GTP1_F_SEQ 0x02
31 #define GTP1_F_EXTHDR 0x04
32 #define GTP1_F_MASK 0x07
34 #endif