/[lwip]/lwip/src/core/ipv4/ip_addr.c
ViewVC logotype

Diff of /lwip/src/core/ipv4/ip_addr.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by likewise, Thu Nov 25 13:59:06 2004 UTC revision 1.21 by likewise, Thu Nov 25 14:03:31 2004 UTC
# Line 61  u8_t ip_addr_isbroadcast(struct ip_addr Line 61  u8_t ip_addr_isbroadcast(struct ip_addr
61    else if (addr->addr == netif->ip_addr.addr)    else if (addr->addr == netif->ip_addr.addr)
62      return 0;      return 0;
63    /*  on the same (sub) network... */    /*  on the same (sub) network... */
64    else if (ip_addr_netcmp(addr->addr, netif->ip_addr.addr, netif->netmask.addr)    else if (ip_addr_netcmp(addr, &(netif->ip_addr), &(netif->netmask))
65           /* ...and host identifier bits are all ones? =>... */           /* ...and host identifier bits are all ones? =>... */
66            && ((addr->addr & ~netif->netmask.addr) ==            && ((addr->addr & ~netif->netmask.addr) ==
67             (ip_addr_broadcast.addr & ~netif->netmask.addr))             (ip_addr_broadcast.addr & ~netif->netmask.addr)))
68      /* => network broadcast address */      /* => network broadcast address */
69      return 1;      return 1;
70    else    else

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26