summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/include/netpacket/packet.h
diff options
context:
space:
mode:
authorGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-02-18 18:43:28 +0000
committerGwenolé Beauchesne <gbeauchesne@mandriva.org>2003-02-18 18:43:28 +0000
commit4b7feaf574461932fa0255a1cb6454d2afba760c (patch)
treee48a3332d51ff702f50c37be197efb7fc3fa0d0b /mdk-stage1/dietlibc/include/netpacket/packet.h
parentf40d43ad1a8690cf3ad71a7e4e81f6a3312c3e3c (diff)
downloaddrakx-4b7feaf574461932fa0255a1cb6454d2afba760c.tar
drakx-4b7feaf574461932fa0255a1cb6454d2afba760c.tar.gz
drakx-4b7feaf574461932fa0255a1cb6454d2afba760c.tar.bz2
drakx-4b7feaf574461932fa0255a1cb6454d2afba760c.tar.xz
drakx-4b7feaf574461932fa0255a1cb6454d2afba760c.zip
Add missing files, remove extra files/dirs (dynlinker)
Diffstat (limited to 'mdk-stage1/dietlibc/include/netpacket/packet.h')
-rw-r--r--mdk-stage1/dietlibc/include/netpacket/packet.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/include/netpacket/packet.h b/mdk-stage1/dietlibc/include/netpacket/packet.h
new file mode 100644
index 000000000..b265094c6
--- /dev/null
+++ b/mdk-stage1/dietlibc/include/netpacket/packet.h
@@ -0,0 +1,41 @@
+#ifndef __NETPACKET_PACKET_H
+#define __NETPACKET_PACKET_H
+
+struct sockaddr_ll {
+ unsigned short int sll_family;
+ unsigned short int sll_protocol;
+ int sll_ifindex;
+ unsigned short int sll_hatype;
+ unsigned char sll_pkttype;
+ unsigned char sll_halen;
+ unsigned char sll_addr[8];
+};
+
+#define PACKET_HOST 0 /* To us. */
+#define PACKET_BROADCAST 1 /* To all. */
+#define PACKET_MULTICAST 2 /* To group. */
+#define PACKET_OTHERHOST 3 /* To someone else. */
+#define PACKET_OUTGOING 4 /* Originated by us. */
+#define PACKET_LOOPBACK 5
+#define PACKET_FASTROUTE 6
+
+/* Packet socket options. */
+
+#define PACKET_ADD_MEMBERSHIP 1
+#define PACKET_DROP_MEMBERSHIP 2
+#define PACKET_RECV_OUTPUT 3
+#define PACKET_RX_RING 5
+#define PACKET_STATISTICS 6
+
+struct packet_mreq {
+ int mr_ifindex;
+ unsigned short int mr_type;
+ unsigned short int mr_alen;
+ unsigned char mr_address[8];
+};
+
+#define PACKET_MR_MULTICAST 0
+#define PACKET_MR_PROMISC 1
+#define PACKET_MR_ALLMULTI 2
+
+#endif