/[lwip]/lwip/src/include/ipv4/lwip/ip_addr.h
ViewVC logotype

Diff of /lwip/src/include/ipv4/lwip/ip_addr.h

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

revision 1.27 by likewise, Thu May 6 03:27:13 2004 UTC revision 1.28 by likewise, Thu Nov 25 11:10:54 2004 UTC
# Line 117  extern const struct ip_addr ip_addr_broa Line 117  extern const struct ip_addr ip_addr_broa
117  #define ip_addr_set(dest, src) (dest)->addr = \  #define ip_addr_set(dest, src) (dest)->addr = \
118                                 ((src) == NULL? 0:\                                 ((src) == NULL? 0:\
119                                 (src)->addr)                                 (src)->addr)
120    /**
121     * Determine if two address are on the same network.
122     *
123     * @arg addr1 IP address 1
124     * @arg addr2 IP address 2
125     * @arg mask network identifier mask
126     * @return !0 if the network identifiers of both address match
127     */
128  #define ip_addr_maskcmp(addr1, addr2, mask) (((addr1)->addr & \  #define ip_addr_maskcmp(addr1, addr2, mask) (((addr1)->addr & \
129                                                (mask)->addr) == \                                                (mask)->addr) == \
130                                               ((addr2)->addr & \                                               ((addr2)->addr & \

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.28

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