From eb67122e5f85e06a7a906254f988f5921ad4f3c4 Mon Sep 17 00:00:00 2001 From: Sorin Dumitru Date: Fri, 29 Aug 2014 16:20:06 +0300 Subject: [PATCH] packet.7: Fix include file It looks like most of the socket options from this man pages are not defined in . They are defined in so we should include that one. Note from mtk: it looks like was based on some ancient version of that has not been updated. Since linux/if_packet.h is under the "uapi" tree the proposed patch seems the bext fix. Signed-off-by: Sorin Dumitru Signed-off-by: Michael Kerrisk --- man7/packet.7 | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/man7/packet.7 b/man7/packet.7 index 57cd3ca87..7b6f20d99 100644 --- a/man7/packet.7 +++ b/man7/packet.7 @@ -16,7 +16,7 @@ packet \- packet interface on device level .nf .B #include .br -.B #include +.B #include .br .B #include /* the L2 protocols */ .sp @@ -535,18 +535,6 @@ is a new feature in Linux 2.2. Earlier Linux versions supported only .BR SOCK_PACKET . .PP -The include file -.I -is present since glibc 2.1. -Older systems need: -.sp -.in +4n -.nf -#include -#include -#include /* The L2 protocols */ -.fi -.in .SH NOTES For portable programs it is suggested to use .B AF_PACKET