Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/libc/src/new/l4re/packet.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers 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 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;