From 99e3fe9ae17ce9856207cd13e03ee315d2c83318 Mon Sep 17 00:00:00 2001 From: likewise Date: Sun, 17 Oct 2004 18:13:18 +0000 Subject: [PATCH] 17th October 2004 Leon Woestenberg ethernetif.c: Fix lwip/stats.h support, reported by Andrew McGeachie. --- src/netif/ethernetif.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/netif/ethernetif.c b/src/netif/ethernetif.c index 22bea8f4..0c14e8de 100644 --- a/src/netif/ethernetif.c +++ b/src/netif/ethernetif.c @@ -42,6 +42,7 @@ #include "lwip/mem.h" #include "lwip/pbuf.h" #include "lwip/sys.h" +#include #include "netif/etharp.h" @@ -117,7 +118,7 @@ low_level_output(struct netif *netif, struct pbuf *p) pbuf_header(p, ETH_PAD_SIZE); /* reclaim the padding word */ #endif -#ifdef LINK_STATS +#if LINK_STATS lwip_stats.link.xmit++; #endif /* LINK_STATS */ @@ -170,12 +171,12 @@ low_level_input(struct netif *netif) pbuf_header(p, ETH_PAD_SIZE); /* reclaim the padding word */ #endif -#ifdef LINK_STATS +#if LINK_STATS lwip_stats.link.recv++; #endif /* LINK_STATS */ } else { drop packet(); -#ifdef LINK_STATS +#if LINK_STATS lwip_stats.link.memerr++; lwip_stats.link.drop++; #endif /* LINK_STATS */ @@ -229,7 +230,7 @@ ethernetif_input(struct netif *netif) /* points to packet payload, which starts with an Ethernet header */ ethhdr = p->payload; -#ifdef LINK_STATS +#if LINK_STATS lwip_stats.link.recv++; #endif /* LINK_STATS */