When sending SCTP packets, the SCTP stack provides an IPv4 or IPv6 header when calling ip_output() or ipv6_output(). Currently, the IPv4 stack does not count these packets using the ips_localout counter whereas the IPv6 stack does count them correctly in the ip6s_localout counter.
This patch ensures that packets sent via IPv4 with an IPv4 header provided by the caller of ip_output() are counted in the ips_localout counter.