Page MenuHomeFreeBSD

D43983.diff
No OneTemporary

D43983.diff

diff --git a/usr.sbin/arp/arp_netlink.c b/usr.sbin/arp/arp_netlink.c
--- a/usr.sbin/arp/arp_netlink.c
+++ b/usr.sbin/arp/arp_netlink.c
@@ -390,9 +390,6 @@
return (0);
}
- if (opts.expire_time != 0)
- opts.flags &= ~RTF_STATIC;
-
snl_init_writer(&ss, &nw);
struct nlmsghdr *hdr = snl_create_msg_request(&nw, RTM_NEWNEIGH);
hdr->nlmsg_flags |= NLM_F_CREATE | NLM_F_REPLACE;
@@ -402,11 +399,12 @@
ndmsg->ndm_family = AF_INET;
ndmsg->ndm_ifindex = ifindex;
- ndmsg->ndm_state = (opts.flags & RTF_STATIC) ? NUD_PERMANENT : NUD_NONE;
+ ndmsg->ndm_state = (opts.expire_time == 0) ? \
+ NUD_PERMANENT : NUD_NONE;
if (opts.flags & RTF_ANNOUNCE)
nl_flags |= NTF_PROXY;
- if (opts.flags & RTF_STATIC)
+ if (opts.expire_time == 0)
nl_flags |= NTF_STICKY;
ndmsg->ndm_flags = nl_flags;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 8:18 AM (11 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14531082
Default Alt Text
D43983.diff (824 B)

Event Timeline