diff options
author | Sebastian Benoit <benno@cvs.openbsd.org> | 2019-01-04 11:13:36 +0000 |
---|---|---|
committer | Sebastian Benoit <benno@cvs.openbsd.org> | 2019-01-04 11:13:36 +0000 |
commit | 98da2776d8dad486100cd991459d9ac28b53b906 (patch) | |
tree | f8d323dd318381e5b73b2d4de0c2cb3f11096c6c | |
parent | 21554ae76f62b98365891a8d5ede9b85310a8e02 (diff) |
make kernel build without INET6 again.
ok dlg@
-rw-r--r-- | sys/net/if_gre.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index c8472556194..5b531cd5cf6 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gre.c,v 1.143 2018/12/17 23:42:47 dlg Exp $ */ +/* $OpenBSD: if_gre.c,v 1.144 2019/01/04 11:13:35 benno Exp $ */ /* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -297,9 +297,11 @@ static int gre_input_key(struct mbuf **, int *, int, int, uint8_t, static struct mbuf * gre_ipv4_patch(const struct gre_tunnel *, struct mbuf *, uint8_t); +#ifdef INET6 static struct mbuf * gre_ipv6_patch(const struct gre_tunnel *, struct mbuf *, uint8_t); +#endif static struct mbuf * gre_mpls_patch(const struct gre_tunnel *, struct mbuf *, uint8_t); @@ -1205,6 +1207,7 @@ gre_ipv4_patch(const struct gre_tunnel *tunnel, struct mbuf *m, uint8_t otos) return (m); } +#ifdef INET6 static struct mbuf * gre_ipv6_patch(const struct gre_tunnel *tunnel, struct mbuf *m, uint8_t otos) { @@ -1231,6 +1234,7 @@ gre_ipv6_patch(const struct gre_tunnel *tunnel, struct mbuf *m, uint8_t otos) return (m); } +#endif static struct mbuf * gre_mpls_patch(const struct gre_tunnel *tunnel, struct mbuf *m, uint8_t otos) |