~ubuntu-branches/ubuntu/vivid/emscripten/vivid-proposed

« back to all changes in this revision

Viewing changes to system/include/libc/netpacket/packet.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2014-01-19 14:12:40 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140119141240-nfiw0p8033oitpfz
Tags: 1.9.0~20140119~7dc8c2f-1
* New snapshot release (Closes: #733714)
* Provide sources for javascript and flash. Done in orig-tar.sh
  Available in third_party/websockify/include/web-socket-js/src/
  (Closes: #735903)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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