Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: fusl/include/netpacket/packet.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/include/netinet/udp.h ('k') | fusl/include/nl_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #ifndef _NETPACKET_PACKET_H
2 #define _NETPACKET_PACKET_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 struct sockaddr_ll {
9 unsigned short sll_family, sll_protocol;
10 int sll_ifindex;
11 unsigned short sll_hatype;
12 unsigned char sll_pkttype, sll_halen;
13 unsigned char sll_addr[8];
14 };
15
16 struct packet_mreq {
17 int mr_ifindex;
18 unsigned short int mr_type, mr_alen;
19 unsigned char mr_address[8];
20 };
21
22 #define PACKET_HOST 0
23 #define PACKET_BROADCAST 1
24 #define PACKET_MULTICAST 2
25 #define PACKET_OTHERHOST 3
26 #define PACKET_OUTGOING 4
27 #define PACKET_LOOPBACK 5
28 #define PACKET_FASTROUTE 6
29
30 #define PACKET_ADD_MEMBERSHIP 1
31 #define PACKET_DROP_MEMBERSHIP 2
32 #define PACKET_RECV_OUTPUT 3
33 #define PACKET_RX_RING 5
34 #define PACKET_STATISTICS 6
35
36 #define PACKET_MR_MULTICAST 0
37 #define PACKET_MR_PROMISC 1
38 #define PACKET_MR_ALLMULTI 2
39
40 #ifdef __cplusplus
41 }
42 #endif
43
44 #endif
OLDNEW
« no previous file with comments | « fusl/include/netinet/udp.h ('k') | fusl/include/nl_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698