Skip to content

Commit

Permalink
*BSD: Add ioctls for BPF/network interface operations
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaniel-bennett committed Aug 16, 2024
1 parent fbdf2c1 commit 452f7fb
Show file tree
Hide file tree
Showing 13 changed files with 385 additions and 25 deletions.
28 changes: 28 additions & 0 deletions libc-test/semver/apple.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,33 @@ SIGINFO
SIGIO
SIGNATURE
SIGSTKSZ
SIOCADDMULTI
SIOCAIFADDR
SIOCAIFADDR_IN6
SIOCDELMULTI
SIOCDIFADDR
SIOCDIFADDR_IN6
SIOCGIFADDR
SIOCGIFBRDADDR
SIOCGIFCAP
SIOCGIFDEVMTU
SIOCGIFDSTADDR
SIOCGIFFLAGS
SIOCGIFLLADDR
SIOCGIFMTU
SIOCGIFNETMASK
SIOCIFCREATE
SIOCIFCREATE2
SIOCIFDESTROY
SIOCSDRVSPEC
SIOCSIFADDR
SIOCSIFBRDADDR
SIOCSIFCAP
SIOCSIFDSTADDR
SIOCSIFFLAGS
SIOCSIFLLADDR
SIOCSIFMTU
SIOCSIFNETMASK
SOCK_MAXADDRLEN
SOCK_RAW
SOCK_RDM
Expand Down Expand Up @@ -1852,6 +1878,8 @@ backtrace_symbols_fd
basename
boolean_t
bpf_hdr
bpf_stat
bpf_version
brk
bsearch
chflags
Expand Down
43 changes: 43 additions & 0 deletions libc-test/semver/dragonfly.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,22 +82,26 @@ B14400
B28800
B7200
B76800
BIOCFEEDBACK
BIOCFLUSH
BIOCGBLEN
BIOCGDLT
BIOCGDLTLIST
BIOCGETIF
BIOCGFEEDBACK
BIOCGHDRCMPLT
BIOCGRSIG
BIOCGRTIMEOUT
BIOCGSEESENT
BIOCGSTATS
BIOCIMMEDIATE
BIOCLOCK
BIOCPROMISC
BIOCSBLEN
BIOCSDLT
BIOCSETF
BIOCSETIF
BIOCSFEEDBACK
BIOCSHDRCMPLT
BIOCSRSIG
BIOCSRTIMEOUT
Expand Down Expand Up @@ -870,6 +874,22 @@ RLIMIT_STACK
RLIMIT_VMEM
RLIM_INFINITY
RLIM_NLIMITS
RTAX_AUTHOR
RTAX_BRD
RTAX_DST
RTAX_GATEWAY
RTAX_GENMASK
RTAX_IFA
RTAX_IFP
RTAX_NETMASK
RTA_AUTHOR
RTA_BRD
RTA_DST
RTA_GATEWAY
RTA_GENMASK
RTA_IFA
RTA_IFP
RTA_NETMASK
RTLD_NEXT
RTLD_NODELETE
RTLD_NOLOAD
Expand Down Expand Up @@ -918,7 +938,30 @@ SIGINFO
SIGIO
SIGNATURE
SIGSTKSZ
SIOCADDMULTI
SIOCAIFADDR
SIOCAIFADDR_IN6
SIOCDELMULTI
SIOCDIFADDR
SIOCDIFADDR_IN6
SIOCGIFADDR
SIOCGIFBRDADDR
SIOCGIFCAP
SIOCGIFDSTADDR
SIOCGIFFLAGS
SIOCGIFMTU
SIOCGIFNETMASK
SIOCIFCREATE
SIOCIFCREATE2
SIOCIFDESTROY
SIOCSDRVSPEC
SIOCSIFADDR
SIOCSIFBRDADDR
SIOCSIFCAP
SIOCSIFDSTADDR
SIOCSIFFLAGS
SIOCSIFMTU
SIOCSIFNETMASK
SLIPDISC
SOCK_CLOEXEC
SOCK_MAXADDRLEN
Expand Down
46 changes: 46 additions & 0 deletions libc-test/semver/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ B7200
B76800
B921600
BIOCFLUSH
BIOCFEEDBACK
BIOCGBLEN
BIOCGDLT
BIOCGDLTLIST
Expand All @@ -127,12 +128,15 @@ BIOCGRTIMEOUT
BIOCGSEESENT
BIOCGSTATS
BIOCIMMEDIATE
BIOCLOCK
BIOCPROMISC
BIOCROTZBUF
BIOCSBLEN
BIOCSDLT
BIOCSETF
BIOCSETFNR
BIOCSETIF
BIOCSETZBUF
BIOCSHDRCMPLT
BIOCSRSIG
BIOCSRTIMEOUT
Expand Down Expand Up @@ -1122,6 +1126,22 @@ RLIMIT_UMTXP
RLIMIT_VMEM
RLIM_INFINITY
RLIM_NLIMITS
RTAX_AUTHOR
RTAX_BRD
RTAX_DST
RTAX_GATEWAY
RTAX_GENMASK
RTAX_IFA
RTAX_IFP
RTAX_NETMASK
RTA_AUTHOR
RTA_BRD
RTA_DST
RTA_GATEWAY
RTA_GENMASK
RTA_IFA
RTA_IFP
RTA_NETMASK
RTLD_NEXT
RTLD_NODELETE
RTLD_NOLOAD
Expand Down Expand Up @@ -1318,7 +1338,30 @@ SIGLIBRT
SIGLWP
SIGSTKSZ
SIGTHR
SIOCADDMULTI
SIOCAIFADDR
SIOCAIFADDR_IN6
SIOCDELMULTI
SIOCDIFADDR
SIOCDIFADDR_IN6
SIOCGIFADDR
SIOCGIFBRDADDR
SIOCGIFCAP
SIOCGIFDSTADDR
SIOCGIFFLAGS
SIOCGIFMTU
SIOCGIFNETMASK
SIOCIFCREATE
SIOCIFCREATE2
SIOCIFDESTROY
SIOCSDRVSPEC
SIOCSIFADDR
SIOCSIFBRDADDR
SIOCSIFCAP
SIOCSIFDSTADDR
SIOCSIFFLAGS
SIOCSIFMTU
SIOCSIFNETMASK
SLIPDISC
SOCKCREDSIZE
SOCK_CLOEXEC
Expand Down Expand Up @@ -1720,7 +1763,10 @@ bpf_hdr
bpf_insn
bpf_program
bpf_stat
bpf_ts
bpf_version
bpf_xhdr
bpf_zbuf
bsearch
cap_enter
cap_getmode
Expand Down
45 changes: 45 additions & 0 deletions libc-test/semver/netbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,23 @@ B460800
B7200
B76800
B921600
BIOCFEEDBACK
BIOCFLUSH
BIOCGBLEN
BIOCGDLT
BIOCGETIF
BIOCGFEEDBACK
BIOCGHDRCMPLT
BIOCGRSIG
BIOCGSEESENT
BIOCGSTATS
BIOCIMMEDIATE
BIOCLOCK
BIOCPROMISC
BIOCSBLEN
BIOCSDLT
BIOCSETIF
BIOCSFEEDBACK
BIOCSHDRCMPLT
BIOCSRSIG
BIOCSSEESENT
Expand Down Expand Up @@ -926,6 +930,22 @@ RLIM_INFINITY
RLIM_NLIMITS
RLIM_SAVED_CUR
RLIM_SAVED_MAX
RTAX_AUTHOR
RTAX_BRD
RTAX_DST
RTAX_GATEWAY
RTAX_GENMASK
RTAX_IFA
RTAX_IFP
RTAX_NETMASK
RTA_AUTHOR
RTA_BRD
RTA_DST
RTA_GATEWAY
RTA_GENMASK
RTA_IFA
RTA_IFP
RTA_NETMASK
RTLD_NEXT
RTLD_NOLOAD
RTLD_SELF
Expand Down Expand Up @@ -958,7 +978,30 @@ SIGINFO
SIGIO
SIGNATURE
SIGSTKSZ
SIOCADDMULTI
SIOCAIFADDR
SIOCAIFADDR_IN6
SIOCDELMULTI
SIOCDIFADDR
SIOCDIFADDR_IN6
SIOCGIFADDR
SIOCGIFBRDADDR
SIOCGIFCAP
SIOCGIFDSTADDR
SIOCGIFFLAGS
SIOCGIFMTU
SIOCGIFNETMASK
SIOCIFCREATE
SIOCIFCREATE2
SIOCIFDESTROY
SIOCSDRVSPEC
SIOCSIFADDR
SIOCSIFBRDADDR
SIOCSIFCAP
SIOCSIFDSTADDR
SIOCSIFFLAGS
SIOCSIFMTU
SIOCSIFNETMASK
SOCKCREDSIZE
SOCK_CLOEXEC
SOCK_CONN_DGRAM
Expand Down Expand Up @@ -1211,6 +1254,8 @@ backtrace_symbols
backtrace_symbols_fd
backtrace_symbols_fmt
backtrace_symbols_fd_fmt
bpf_stat
bpf_version
bsearch
chflags
chroot
Expand Down
39 changes: 39 additions & 0 deletions libc-test/semver/openbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ BIOCGHDRCMPLT
BIOCGRSIG
BIOCGSTATS
BIOCIMMEDIATE
BIOCLOCK
BIOCPROMISC
BIOCSBLEN
BIOCSDLT
Expand Down Expand Up @@ -764,6 +765,22 @@ RLIM_INFINITY
RLIM_NLIMITS
RLIM_SAVED_CUR
RLIM_SAVED_MAX
RTAX_AUTHOR
RTAX_BRD
RTAX_DST
RTAX_GATEWAY
RTAX_GENMASK
RTAX_IFA
RTAX_IFP
RTAX_NETMASK
RTA_AUTHOR
RTA_BRD
RTA_DST
RTA_GATEWAY
RTA_GENMASK
RTA_IFA
RTA_IFP
RTA_NETMASK
RTLD_NEXT
RTLD_SELF
RUSAGE_CHILDREN
Expand All @@ -785,7 +802,27 @@ SIGEMT
SIGINFO
SIGIO
SIGSTKSZ
SIOCADDMULTI
SIOCAIFADDR
SIOCAIFADDR_IN6
SIOCDELMULTI
SIOCDIFADDR
SIOCDIFADDR_IN6
SIOCGIFADDR
SIOCGIFBRDADDR
SIOCGIFDSTADDR
SIOCGIFFLAGS
SIOCGIFMTU
SIOCGIFNETMASK
SIOCIFCREATE
SIOCIFCREATE2
SIOCIFDESTROY
SIOCSIFADDR
SIOCGIFBRDADDR
SIOCSIFDSTADDR
SIOCSIFFLAGS
SIOCSIFMTU
SIOCSIFNETMASK
SOCK_CLOEXEC
SOCK_DNS
SOCK_NONBLOCK
Expand Down Expand Up @@ -1016,6 +1053,8 @@ backtrace_symbols
backtrace_symbols_fd
backtrace_symbols_fmt
basename
bpf_stat
bpf_version
bsearch
caddr_t
calloc_conceal
Expand Down
Loading

0 comments on commit 452f7fb

Please sign in to comment.