patch-2.1.80 linux/include/linux/ip.h
Next file: linux/include/linux/kernel_stat.h
Previous file: linux/include/linux/fs.h
Back to the patch index
Back to the overall index
- Lines: 11
- Date:
Tue Jan 20 16:53:59 1998
- Orig file:
v2.1.79/linux/include/linux/ip.h
- Orig date:
Mon Jul 7 16:04:02 1997
diff -u --recursive --new-file v2.1.79/linux/include/linux/ip.h linux/include/linux/ip.h
@@ -124,6 +124,10 @@
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,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov