aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / vendor / libc / src / new / l4re / packet.rs
| 1 | //! Header: `netpacket/packet.h` |
| 2 | |
| 3 | use crate::prelude::*; |
| 4 | |
| 5 | pub const PACKET_HOST: c_uchar = 0; |
| 6 | pub const PACKET_BROADCAST: c_uchar = 1; |
| 7 | pub const PACKET_MULTICAST: c_uchar = 2; |
| 8 | pub const PACKET_OTHERHOST: c_uchar = 3; |
| 9 | pub const PACKET_OUTGOING: c_uchar = 4; |
| 10 | pub const PACKET_LOOPBACK: c_uchar = 5; |
| 11 | |
| 12 | pub const PACKET_ADD_MEMBERSHIP: c_int = 1; |
| 13 | pub const PACKET_DROP_MEMBERSHIP: c_int = 2; |
| 14 | pub const PACKET_RECV_OUTPUT: c_int = 3; |
| 15 | pub const PACKET_RX_RING: c_int = 5; |
| 16 | pub const PACKET_STATISTICS: c_int = 6; |
| 17 | |
| 18 | s! { |
| 19 | pub struct packet_mreq { |
| 20 | pub mr_ifindex: c_int, |
| 21 | pub mr_type: c_ushort, |
| 22 | pub mr_alen: c_ushort, |
| 23 | pub mr_address: [c_uchar; 8], |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | pub const PACKET_MR_MULTICAST: c_int = 0; |
| 28 | pub const PACKET_MR_PROMISC: c_int = 1; |
| 29 | pub const PACKET_MR_ALLMULTI: c_int = 2; |