diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2023-02-10 15:45:44 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2023-02-14 15:21:20 +0000 |
commit | a3a76c3d9031d5fa432145afc8493ebda97719ce (patch) | |
tree | 31d2e1a1e818d75a102eba7c1c99857f0c2f71dc /sys/net/if_var.h | |
parent | 189c3729d84f620a6be10f62daef32ae9a47eff3 (diff) | |
download | src-a3a76c3d9031d5fa432145afc8493ebda97719ce.tar.gz src-a3a76c3d9031d5fa432145afc8493ebda97719ce.zip |
IfAPI: Add capabilities2/capenable2 accessors
Summary:
As a stopgap measure add basic accessors for the if_capabilities2 and
if_capenable2 members to further hide the ifnet details.
Sponsored by: Juniper Networks, Inc.
Reviewed by: glebius, kib
Differential Revision: https://reviews.freebsd.org/D38487
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r-- | sys/net/if_var.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h index f6bb77908d40..ef3e3d71a262 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -576,6 +576,13 @@ int if_togglecapenable(if_t ifp, int togglecap); int if_setcapenable(if_t ifp, int capenable); int if_setcapenablebit(if_t ifp, int setcap, int clearcap); int if_getcapenable(const if_t ifp); +int if_setcapabilities2(if_t ifp, int capabilities); +int if_setcapabilities2bit(if_t ifp, int setbit, int clearbit); +int if_getcapabilities2(const if_t ifp); +int if_togglecapenable2(if_t ifp, int togglecap); +int if_setcapenable2(if_t ifp, int capenable); +int if_setcapenable2bit(if_t ifp, int setcap, int clearcap); +int if_getcapenable2(const if_t ifp); int if_getdunit(const if_t ifp); int if_getindex(const if_t ifp); int if_getidxgen(const if_t ifp); |