Page MenuHomeFreeBSD

D17406.diff
No OneTemporary

D17406.diff

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

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)

Event Timeline