imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / ulogd / patches / patch-include_linux_tcp_h
blob2752fc21b9d3db3ee0be46ee6c11d88f84860e48
1 --- ulogd-2.0.2.orig/include/linux/tcp.h        1970-01-01 00:00:00.000000000 +0100
2 +++ ulogd-2.0.2/include/linux/tcp.h     2013-11-11 21:27:31.000000000 +0100
3 @@ -0,0 +1,34 @@
4 +struct tcphdr
5 +  {
6 +    u_int16_t source;
7 +    u_int16_t dest;
8 +    u_int32_t seq;
9 +    u_int32_t ack_seq;
10 +#  if __BYTE_ORDER == __LITTLE_ENDIAN
11 +    u_int16_t res1:4;
12 +    u_int16_t doff:4;
13 +    u_int16_t fin:1;
14 +    u_int16_t syn:1;
15 +    u_int16_t rst:1;
16 +    u_int16_t psh:1;
17 +    u_int16_t ack:1;
18 +    u_int16_t urg:1;
19 +    u_int16_t res2:2;
20 +#  elif __BYTE_ORDER == __BIG_ENDIAN
21 +    u_int16_t doff:4;
22 +    u_int16_t res1:4;
23 +    u_int16_t res2:2;
24 +    u_int16_t urg:1;
25 +    u_int16_t ack:1;
26 +    u_int16_t psh:1;
27 +    u_int16_t rst:1;
28 +    u_int16_t syn:1;
29 +    u_int16_t fin:1;
30 +#  else
31 +#   error "Adjust your <bits/endian.h> defines"
32 +#  endif
33 +    u_int16_t window;
34 +    u_int16_t check;
35 +    u_int16_t urg_ptr;
36 +};