diff options
Diffstat (limited to 'include/linux/ip.h')
-rw-r--r-- | include/linux/ip.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/ip.h b/include/linux/ip.h index 538cede73..f09175b4e 100644 --- a/include/linux/ip.h +++ b/include/linux/ip.h @@ -124,6 +124,10 @@ struct ip_options { unsigned char __data[0]; }; +#ifdef __KERNEL__ +#define optlength(opt) (sizeof(struct ip_options) + opt->optlen) +#endif + struct iphdr { #if defined(__LITTLE_ENDIAN_BITFIELD) __u8 ihl:4, |