Skip to content

Commit

Permalink
Flags for SIOC{G,S}IFFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
bentheklutz committed Nov 12, 2024
1 parent 8622665 commit ae587f2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/std/os/linux.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3987,6 +3987,19 @@ pub const IP = struct {
pub const MAX_MEMBERSHIPS = 20;
};

pub const IFF = packed struct(u16) {
UP: bool = false,
BROADCAST: bool = false,
DEBUG: bool = false,
LOOPBACK: bool = false,
POINTOPOINT: bool = false,
NOTRAILERS: bool = false,
RUNNING: bool = false,
NOARP: bool = false,
PROMISC: bool = false,
_: u7 = 0,
};

/// IPv6 socket options
pub const IPV6 = struct {
pub const ADDRFORM = 1;
Expand Down
1 change: 1 addition & 0 deletions lib/std/posix.zig
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ pub const SIOCGIFINDEX = system.SIOCGIFINDEX;
pub const SO = system.SO;
pub const SOCK = system.SOCK;
pub const SOL = system.SOL;
pub const IFF = system.IFF;
pub const STDERR_FILENO = system.STDERR_FILENO;
pub const STDIN_FILENO = system.STDIN_FILENO;
pub const STDOUT_FILENO = system.STDOUT_FILENO;
Expand Down

0 comments on commit ae587f2

Please sign in to comment.