• Vincent Bernat's avatar
    snmp: fix OutOctets counter to include forwarded datagrams · 2d8dbb04
    Vincent Bernat authored
    RFC 4293 defines ipIfStatsOutOctets (similar definition for
    ipSystemStatsOutOctets):
    
       The total number of octets in IP datagrams delivered to the lower
       layers for transmission.  Octets from datagrams counted in
       ipIfStatsOutTransmits MUST be counted here.
    
    And ipIfStatsOutTransmits:
    
       The total number of IP datagrams that this entity supplied to the
       lower layers for transmission.  This includes datagrams generated
       locally and those forwarded by this entity.
    
    Therefore, IPSTATS_MIB_OUTOCTETS must be incremented when incrementing
    IPSTATS_MIB_OUTFORWDATAGRAMS.
    
    IP_UPD_PO_STATS is not used since ipIfStatsOutRequests must not
    include forwarded datagrams:
    
       The total number of IP datagrams that local IP user-protocols
       (including ICMP) supplied to IP in requests for transmission.  Note
       that this counter does not include any datagrams counted in
       ipIfStatsOutForwDatagrams.
    Signed-off-by: Vincent Bernat's avatarVincent Bernat <bernat@luffy.cx>
    Signed-off-by: 's avatarDavid S. Miller <davem@davemloft.net>
    2d8dbb04
Name
Last commit
Last update
..
netfilter Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
af_inet.c Loading commit data...
ah4.c Loading commit data...
arp.c Loading commit data...
cipso_ipv4.c Loading commit data...
datagram.c Loading commit data...
devinet.c Loading commit data...
esp4.c Loading commit data...
fib_frontend.c Loading commit data...
fib_lookup.h Loading commit data...
fib_rules.c Loading commit data...
fib_semantics.c Loading commit data...
fib_trie.c Loading commit data...
gre.c Loading commit data...
icmp.c Loading commit data...
igmp.c Loading commit data...
inet_connection_sock.c Loading commit data...
inet_diag.c Loading commit data...
inet_fragment.c Loading commit data...
inet_hashtables.c Loading commit data...
inet_lro.c Loading commit data...
inet_timewait_sock.c Loading commit data...
inetpeer.c Loading commit data...
ip_forward.c Loading commit data...
ip_fragment.c Loading commit data...
ip_gre.c Loading commit data...
ip_input.c Loading commit data...
ip_options.c Loading commit data...
ip_output.c Loading commit data...
ip_sockglue.c Loading commit data...
ipcomp.c Loading commit data...
ipconfig.c Loading commit data...
ipip.c Loading commit data...
ipmr.c Loading commit data...
netfilter.c Loading commit data...
ping.c Loading commit data...
proc.c Loading commit data...
protocol.c Loading commit data...
raw.c Loading commit data...
route.c Loading commit data...
syncookies.c Loading commit data...
sysctl_net_ipv4.c Loading commit data...
tcp.c Loading commit data...
tcp_bic.c Loading commit data...
tcp_cong.c Loading commit data...
tcp_cubic.c Loading commit data...
tcp_diag.c Loading commit data...
tcp_highspeed.c Loading commit data...
tcp_htcp.c Loading commit data...
tcp_hybla.c Loading commit data...
tcp_illinois.c Loading commit data...
tcp_input.c Loading commit data...
tcp_ipv4.c Loading commit data...
tcp_lp.c Loading commit data...
tcp_memcontrol.c Loading commit data...
tcp_minisocks.c Loading commit data...
tcp_output.c Loading commit data...
tcp_probe.c Loading commit data...
tcp_scalable.c Loading commit data...
tcp_timer.c Loading commit data...
tcp_vegas.c Loading commit data...
tcp_vegas.h Loading commit data...
tcp_veno.c Loading commit data...
tcp_westwood.c Loading commit data...
tcp_yeah.c Loading commit data...
tunnel4.c Loading commit data...
udp.c Loading commit data...
udp_diag.c Loading commit data...
udp_impl.h Loading commit data...
udplite.c Loading commit data...
xfrm4_input.c Loading commit data...
xfrm4_mode_beet.c Loading commit data...
xfrm4_mode_transport.c Loading commit data...
xfrm4_mode_tunnel.c Loading commit data...
xfrm4_output.c Loading commit data...
xfrm4_policy.c Loading commit data...
xfrm4_state.c Loading commit data...
xfrm4_tunnel.c Loading commit data...