mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-09-17 20:24:24 +00:00
SNMP prefers tot_len
This commit is contained in:
parent
77aa06df64
commit
9b60b55f03
@ -1293,7 +1293,7 @@ static int ppp_write_over_ethernet(ppp_pcb *pcb, struct pbuf *p) {
|
|||||||
dump_packet("sent", (unsigned char *)ph->payload, ph->len);
|
dump_packet("sent", (unsigned char *)ph->payload, ph->len);
|
||||||
#endif /* PRINTPKT_SUPPORT */
|
#endif /* PRINTPKT_SUPPORT */
|
||||||
|
|
||||||
snmp_add_ifoutoctets(&pcb->netif, (u16_t)ph->len);
|
snmp_add_ifoutoctets(&pcb->netif, (u16_t)ph->tot_len);
|
||||||
snmp_inc_ifoutucastpkts(&pcb->netif);
|
snmp_inc_ifoutucastpkts(&pcb->netif);
|
||||||
LINK_STATS_INC(link.xmit);
|
LINK_STATS_INC(link.xmit);
|
||||||
pbuf_free(ph);
|
pbuf_free(ph);
|
||||||
|
Loading…
Reference in New Issue
Block a user