Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Partially revert previous: set RTF_HOST regardle...
details: https://anonhg.NetBSD.org/src/rev/6138542e41e4
branches: trunk
changeset: 937979:6138542e41e4
user: christos <christos%NetBSD.org@localhost>
date: Sat Aug 29 17:41:14 2020 +0000
description:
Partially revert previous: set RTF_HOST regardless of mask for point-to-point
links. Unbreaks IPSEC/L2TP configurations.
diffstat:
sys/netinet/in.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (33 lines):
diff -r 2670b323a833 -r 6138542e41e4 sys/netinet/in.c
--- a/sys/netinet/in.c Sat Aug 29 17:34:21 2020 +0000
+++ b/sys/netinet/in.c Sat Aug 29 17:41:14 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in.c,v 1.237 2020/08/20 21:21:32 riastradh Exp $ */
+/* $NetBSD: in.c,v 1.238 2020/08/29 17:41:14 christos Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.237 2020/08/20 21:21:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in.c,v 1.238 2020/08/29 17:41:14 christos Exp $");
#include "arp.h"
@@ -1231,11 +1231,9 @@
ia->ia_dstaddr = ia->ia_addr;
flags |= RTF_HOST;
} else if (ifp->if_flags & IFF_POINTOPOINT) {
- if (in_mask2len(&ia->ia_sockmask.sin_addr) == 32) {
- if (ia->ia_dstaddr.sin_family != AF_INET)
- return (0);
- flags |= RTF_HOST;
- }
+ if (ia->ia_dstaddr.sin_family != AF_INET)
+ return (0);
+ flags |= RTF_HOST;
}
/* Add the local route to the address */
Home |
Main Index |
Thread Index |
Old Index