diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-06-20 11:12:14 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2017-06-20 11:12:14 +0000 |
commit | 1e2e74e08ef5cab10e537f1567a4fbc6ac9d775a (patch) | |
tree | c9f2b19b204e7459d0f78e184a5e45911e0555ab /sys/netinet/ip_ipip.h | |
parent | 0f26878960c82a6f407699564dcb2dae1a1a82f3 (diff) |
Do not use the interface pointer after if_put(). Rename ipip_input_gif()
to ipip_input_if() and always pass the ifp. Only dump the packet
to bpf if we are called with a gif(4) interface.
OK mpi@
Diffstat (limited to 'sys/netinet/ip_ipip.h')
-rw-r--r-- | sys/netinet/ip_ipip.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_ipip.h b/sys/netinet/ip_ipip.h index 2b8dc9144a5..3ff6d1e1aaa 100644 --- a/sys/netinet/ip_ipip.h +++ b/sys/netinet/ip_ipip.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipip.h,v 1.9 2017/05/18 10:56:45 bluhm Exp $ */ +/* $OpenBSD: ip_ipip.h,v 1.10 2017/06/20 11:12:13 bluhm Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -106,7 +106,7 @@ ipipstat_add(enum ipipstat_counters c, uint64_t v) void ipip_init(void); int ipip_input(struct mbuf **, int *, int, int); -int ipip_input_gif(struct mbuf **, int *, int, int, struct ifnet *); +int ipip_input_if(struct mbuf **, int *, int, int, struct ifnet *); int ipip_output(struct mbuf *, struct tdb *, struct mbuf **, int, int); int ipip_sysctl(int *, u_int, void *, size_t *, void *, size_t); |