/* * netsniff-ng - the packet sniffing beast * Copyright (C) 2009, 2010 Daniel Borkmann * Copyright (C) 2012 Christoph Jaeger * Subject to the GPL, version 2. */ #ifndef IPV4_H #define IPV4_H #include #include "built_in.h" struct ipv4hdr { #if defined(__LITTLE_ENDIAN_BITFIELD) __extension__ uint8_t h_ihl:4, h_version:4; #elif defined (__BIG_ENDIAN_BITFIELD) __extension__ uint8_t h_version:4, h_ihl:4; #else # error "Please fix " #endif uint8_t h_tos; uint16_t h_tot_len; uint16_t h_id; uint16_t h_frag_off; uint8_t h_ttl; uint8_t h_protocol; uint16_t h_check; uint32_t h_saddr; uint32_t h_daddr; } __packed; #endif /* IPV4_H */ /'>cgit logo index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-04-17 19:13:32 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-04-17 19:13:32 -0700
commitc3b46c73264b03000d1e18b22f5caf63332547c9 (patch)
tree5477448cb625cab6521f554ca5bfa57a40771534 /Documentation/hwmon
parent9d090d01e3efdcdb8f7f07e86fcac91e01ae30cd (diff)
Linux 4.6-rc4
Diffstat (limited to 'Documentation/hwmon')