Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102076854
D43983.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
824 B
Referenced Files
None
Subscribers
None
D43983.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D43983: arp: fix arp -s/-S
Attached
Detach File
Event Timeline
Log In to Comment