Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106148569
D34288.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
470 B
Referenced Files
None
Subscribers
None
D34288.diff
View Options
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -1555,8 +1555,8 @@
KASSERT(inp != NULL, ("udp_set_kernel_tunneling: inp == NULL"));
INP_WLOCK(inp);
up = intoudpcb(inp);
- if ((up->u_tun_func != NULL) ||
- (up->u_icmp_func != NULL)) {
+ if ((f != NULL || i != NULL) && ((up->u_tun_func != NULL) ||
+ (up->u_icmp_func != NULL))) {
INP_WUNLOCK(inp);
return (EBUSY);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 27, 4:57 AM (11 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15611332
Default Alt Text
D34288.diff (470 B)
Attached To
Mode
D34288: netinet: allow UDP tunnels to be removed
Attached
Detach File
Event Timeline
Log In to Comment