netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] packet.7: fix include file
@ 2014-08-29 13:20 Sorin Dumitru
       [not found] ` <1409318406-5217-1-git-send-email-sdumitru-+zzKsuq53OdBDgjK7y7TUQ@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Sorin Dumitru @ 2014-08-29 13:20 UTC (permalink / raw)
  To: linux-man-u79uwXL29TY76Z2rM5mHXA
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	netdev-u79uwXL29TY76Z2rM5mHXA, sorin-W1xJSxASJ7qhKNWrAYCRhA

It looks like most of the socket options from this man pages
are not defined in <netpacket/packet.h>. They are defined in
<linux/if_packet.h> so we should include that one.

Signed-off-by: Sorin Dumitru <sdumitru-+zzKsuq53OdBDgjK7y7TUQ@public.gmane.org>
---
 man7/packet.7 | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/man7/packet.7 b/man7/packet.7
index 57cd3ca..7b6f20d 100644
--- a/man7/packet.7
+++ b/man7/packet.7
@@ -16,7 +16,7 @@ packet \- packet interface on device level
 .nf
 .B #include <sys/socket.h>
 .br
-.B #include <netpacket/packet.h>
+.B #include <linux/if_packet.h>
 .br
 .B #include <net/ethernet.h>     /* 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 <netpacket/packet.h>
-is present since glibc 2.1.
-Older systems need:
-.sp
-.in +4n
-.nf
-#include <asm/types.h>
-#include <linux/if_packet.h>
-#include <linux/if_ether.h>  /* The L2 protocols */
-.fi
-.in
 .SH NOTES
 For portable programs it is suggested to use
 .B AF_PACKET
-- 
2.0.1

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-09-01 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-29 13:20 [PATCH] packet.7: fix include file Sorin Dumitru
     [not found] ` <1409318406-5217-1-git-send-email-sdumitru-+zzKsuq53OdBDgjK7y7TUQ@public.gmane.org>
2014-09-01 17:25   ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).