diff options
author | julian <julian@FreeBSD.org> | 1998-06-12 03:48:19 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 1998-06-12 03:48:19 +0000 |
commit | 1ee51dd89f8fa0c587541ec9a5d0e0a307a1319e (patch) | |
tree | 3dce44767d7ec68b96b40dff02a52db6b71dbeb0 /sys/net/if_var.h | |
parent | eaeb937aa0099bbc5920c2a03369e096418c7518 (diff) | |
download | FreeBSD-src-1ee51dd89f8fa0c587541ec9a5d0e0a307a1319e.zip FreeBSD-src-1ee51dd89f8fa0c587541ec9a5d0e0a307a1319e.tar.gz |
Go through the loopback code with a broom..
Remove lots'o'hacks.
looutput is now static.
Other callers who want to use loopback to allow shortcutting
should call the special entrypoint for this, if_simloop(), which is
specifically designed for this purpose. Using looutput for this purpose
was problematic, particularly with bpf and trying to keep track
of whether one should be using the charateristics of the loopback interface
or the interface (e.g. if_ethersubr.c) that was requesting the loopback.
There was a whole class of errors due to this mis-use each of which had
hacks to cover them up.
Consists largly of hack removal :-)
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r-- | sys/net/if_var.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h index f01dac3..0feaf23 100644 --- a/sys/net/if_var.h +++ b/sys/net/if_var.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * From: @(#)if.h 8.1 (Berkeley) 6/10/93 - * $Id: if_var.h,v 1.7 1998/04/15 17:46:44 bde Exp $ + * $Id: if_var.h,v 1.8 1998/06/07 17:12:06 dfr Exp $ */ #ifndef _NET_IF_VAR_H_ @@ -326,9 +326,9 @@ void ifafree __P((struct ifaddr *)); struct ifmultiaddr *ifmaof_ifpforaddr __P((struct sockaddr *, struct ifnet *)); +int if_simloop __P((struct ifnet *ifp, struct mbuf *m, + struct sockaddr *dst, int hlen)); -int looutput __P((struct ifnet *, - struct mbuf *, struct sockaddr *, struct rtentry *)); #endif /* KERNEL */ |