From 7e616ea71caf088d4589a30cc2793dec58f6bc50 Mon Sep 17 00:00:00 2001 From: jifl Date: Thu, 3 Jan 2008 17:49:25 +0000 Subject: [PATCH] * core/ipv4/ip.c (ip_input): Rename ipsrcchecking -> check_ip_src, to make purpose clearer. --- src/core/ipv4/ip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/ipv4/ip.c b/src/core/ipv4/ip.c index 8165cd69..c27eae0a 100644 --- a/src/core/ipv4/ip.c +++ b/src/core/ipv4/ip.c @@ -179,7 +179,7 @@ ip_input(struct pbuf *p, struct netif *inp) struct netif *netif; u16_t iphdrlen; #if LWIP_DHCP - int ipsrcchecking=1; + int check_ip_src=1; #endif /* LWIP_DHCP */ IP_STATS_INC(ip.recv); @@ -292,7 +292,7 @@ ip_input(struct pbuf *p, struct netif *inp) if (ntohs(((struct udp_hdr *)((u8_t *)iphdr + iphdrlen))->dest) == DHCP_CLIENT_PORT) { LWIP_DEBUGF(IP_DEBUG | LWIP_DBG_TRACE | 1, ("ip_input: DHCP packet accepted.\n")); netif = inp; - ipsrcchecking = 0; + check_ip_src = 0; } } } @@ -300,7 +300,7 @@ ip_input(struct pbuf *p, struct netif *inp) /* broadcast or multicast packet source address? Compliant with RFC 1122: 3.2.1.3 */ #if LWIP_DHCP - if (ipsrcchecking) + if (check_ip_src) #endif /* LWIP_DHCP */ { if ((ip_addr_isbroadcast(&(iphdr->src), inp)) || (ip_addr_ismulticast(&(iphdr->src)))) {