Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F174150820
D17406.id48850.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.id48850.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
Thu, Oct 1, 11:09 PM (9 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40040443
Default Alt Text
D17406.id48850.diff (476 B)
Attached To
Mode
D17406: Fix ips_localout counter for SCTP
Attached
Detach File
Event Timeline
Log In to Comment