diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-09-05 17:29:10 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2022-09-05 17:29:10 +0000 |
commit | ddc0ed5836ea4c380d56512a28d25787eefb47e9 (patch) | |
tree | 600066e3638aabcc3ccb2dce6c9997cb62653952 /sys/net/if_loop.c | |
parent | 0773b44e829421a806a89087009b294f16ee51fd (diff) | |
download | src-ddc0ed5836ea4c380d56512a28d25787eefb47e9.tar.gz src-ddc0ed5836ea4c380d56512a28d25787eefb47e9.zip |
loop(4): make interface methods static
Diffstat (limited to 'sys/net/if_loop.c')
-rw-r--r-- | sys/net/if_loop.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 643ef2240fe1..4f0b236f7f5e 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -90,8 +90,8 @@ CSUM_IP_CHECKED | CSUM_IP_VALID | \ CSUM_SCTP_VALID) -int loioctl(struct ifnet *, u_long, caddr_t); -int looutput(struct ifnet *ifp, struct mbuf *m, +static int loioctl(struct ifnet *, u_long, caddr_t); +static int looutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, struct route *ro); static int lo_clone_create(struct if_clone *, int, caddr_t); static void lo_clone_destroy(struct ifnet *); @@ -200,7 +200,7 @@ static moduledata_t loop_mod = { DECLARE_MODULE(if_lo, loop_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY); -int +static int looutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, struct route *ro) { @@ -369,8 +369,7 @@ if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen) /* * Process an ioctl request. */ -/* ARGSUSED */ -int +static int loioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct ifreq *ifr = (struct ifreq *)data; |