summaryrefslogtreecommitdiff
path: root/sys/netinet6/in6.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2008-07-13 20:41:40 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2008-07-13 20:41:40 +0000
commitee21ef603cb6448b3109e88e3742d677e7493c34 (patch)
treebedc4a892f3a4d310631c1d99d13d156dedb6b8c /sys/netinet6/in6.c
parent326fd2225d32306f2ee9a3aa453af2c4e31c1720 (diff)
Do not specify the gateway on RTM_DELETE -- similar fix was done in the arp
code. This fixes in6_ifloop_request warnings seen on carp interfaces. OK henning@, found and tested by david@
Diffstat (limited to 'sys/netinet6/in6.c')
-rw-r--r--sys/netinet6/in6.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 6c57d476969..e4f200b54a3 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.c,v 1.77 2008/06/11 19:00:50 mcbride Exp $ */
+/* $OpenBSD: in6.c,v 1.78 2008/07/13 20:41:39 claudio Exp $ */
/* $KAME: in6.c,v 1.372 2004/06/14 08:14:21 itojun Exp $ */
/*
@@ -166,7 +166,8 @@ in6_ifloop_request(int cmd, struct ifaddr *ifa)
bzero(&info, sizeof(info));
info.rti_flags = RTF_UP | RTF_HOST | RTF_LLINFO;
info.rti_info[RTAX_DST] = ifa->ifa_addr;
- info.rti_info[RTAX_GATEWAY] = ifa->ifa_addr;
+ if (cmd != RTM_DELETE)
+ info.rti_info[RTAX_GATEWAY] = ifa->ifa_addr;
info.rti_info[RTAX_NETMASK] = (struct sockaddr *)&all1_sa;
e = rtrequest1(cmd, &info, RTP_CONNECTED, &nrt, 0);
if (e != 0) {