Last change
on this file since 321 was 321, checked in by coas-nagasima, 7 years ago |
文字コードを設定
|
-
Property svn:eol-style
set to
native
-
Property svn:mime-type
set to
text/x-chdr;charset=UTF-8
|
File size:
852 bytes
|
Line | |
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.