diff options
| author | roy <roy@NetBSD.org> | 2019-08-22 21:14:45 +0000 |
|---|---|---|
| committer | roy <roy@NetBSD.org> | 2019-08-22 21:14:45 +0000 |
| commit | 66baf33488b6aa0bc0b83ff59ee562e84fbb93d9 (patch) | |
| tree | 10e746d6e8a186ec7b19a164f1044eba0a8b9f25 /sys/netinet | |
| parent | dc9cc57bc6b6959b7086fdc778ce8d44daba8c08 (diff) | |
rtsock: rework rt_clonedmsg to take a message type and lladdr
We will use this in a future patch to notify userland of lladdr
changes.
XXX pullup -8 -9
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/if_arp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/if_arp.c b/sys/netinet/if_arp.c index a806becb636..a00ba3a1745 100644 --- a/sys/netinet/if_arp.c +++ b/sys/netinet/if_arp.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_arp.c,v 1.283 2019/08/19 03:23:30 ozaki-r Exp $ */ +/* $NetBSD: if_arp.c,v 1.284 2019/08/22 21:14:46 roy Exp $ */ /* * Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc. @@ -68,7 +68,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.283 2019/08/19 03:23:30 ozaki-r Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.284 2019/08/22 21:14:46 roy Exp $"); #ifdef _KERNEL_OPT #include "opt_ddb.h" @@ -751,7 +751,8 @@ notfound: arp_init_llentry(ifp, la); sockaddr_in_init(&sin, &la->r_l3addr.addr4, 0); - rt_clonedmsg(sintosa(&sin), ifp, rt); + if (rt != NULL) + rt_clonedmsg(RTM_ADD, sintosa(&sin), NULL, ifp); } } else if (LLE_TRY_UPGRADE(la) == 0) { create_lookup = "lookup"; |
