diff options
author | 2021-02-27 09:21:22 +0000 | |
---|---|---|
committer | 2021-02-27 09:21:22 +0000 | |
commit | 71ec1a99d05ff0ab8e5f8e703d5640a36ace4bb5 (patch) | |
tree | 987e7a187387ffc9ecaa1f3e0c0876759bace3c8 | |
parent | recover scope from v6 nvgre endpoint addresses for userland to look at. (diff) | |
download | wireguard-openbsd-71ec1a99d05ff0ab8e5f8e703d5640a36ace4bb5.tar.xz wireguard-openbsd-71ec1a99d05ff0ab8e5f8e703d5640a36ace4bb5.zip |
trim some code i accidentally left into the nvgre add address function
-rw-r--r-- | sys/net/if_gre.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index 92961320193..4a07a1746d6 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_gre.c,v 1.169 2021/02/27 09:20:38 dlg Exp $ */ +/* $OpenBSD: if_gre.c,v 1.170 2021/02/27 09:21:22 dlg Exp $ */ /* $NetBSD: if_gre.c,v 1.9 1999/10/25 19:18:11 drochner Exp $ */ /* @@ -3590,9 +3590,6 @@ nvgre_add_addr(struct nvgre_softc *sc, const struct ifbareq *ifba) endpoint.in4 = sin->sin_addr; break; - memset(sin6, 0, sizeof(*sin6)); - sin6->sin6_family = AF_INET6; - sin6->sin6_len = sizeof(*sin6); #ifdef INET6 case AF_INET6: |