Ensure that the ips_localout counter is incremented for
locally generated SCTP packets sent over IPv4. This make the behaviour consistent with IPv6. Reviewed by: ae@, bz@, jtl@ Approved by: re (kib@) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D17406
This commit is contained in:
parent
d2a92930a7
commit
31b6fdc2c2
@ -262,11 +262,12 @@ ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro, int flags,
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user