Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107327281
D17406.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
476 B
Referenced Files
None
Subscribers
None
D17406.diff
View Options
Index: head/sys/netinet/ip_output.c
===================================================================
--- head/sys/netinet/ip_output.c
+++ head/sys/netinet/ip_output.c
@@ -262,11 +262,12 @@
ip->ip_v = IPVERSION;
ip->ip_hl = hlen >> 2;
ip_fillid(ip);
- IPSTAT_INC(ips_localout);
} else {
/* Header already set, fetch hlen from there */
hlen = ip->ip_hl << 2;
}
+ if ((flags & IP_FORWARDING) == 0)
+ IPSTAT_INC(ips_localout);
/*
* dst/gw handling:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 13, 1:30 PM (15 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15782582
Default Alt Text
D17406.diff (476 B)
Attached To
Mode
D17406: Fix ips_localout counter for SCTP
Attached
Detach File
Event Timeline
Log In to Comment