interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / libc / src / new / l4re / packet.rs

29 lines · 803 bytes Raw Blame History
1//! Header: `netpacket/packet.h`
2
3use crate::prelude::*;
4
5pub const PACKET_HOST: c_uchar = 0;
6pub const PACKET_BROADCAST: c_uchar = 1;
7pub const PACKET_MULTICAST: c_uchar = 2;
8pub const PACKET_OTHERHOST: c_uchar = 3;
9pub const PACKET_OUTGOING: c_uchar = 4;
10pub const PACKET_LOOPBACK: c_uchar = 5;
11
12pub const PACKET_ADD_MEMBERSHIP: c_int = 1;
13pub const PACKET_DROP_MEMBERSHIP: c_int = 2;
14pub const PACKET_RECV_OUTPUT: c_int = 3;
15pub const PACKET_RX_RING: c_int = 5;
16pub const PACKET_STATISTICS: c_int = 6;
17
18s! {
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
27pub const PACKET_MR_MULTICAST: c_int = 0;
28pub const PACKET_MR_PROMISC: c_int = 1;
29pub const PACKET_MR_ALLMULTI: c_int = 2;