Changeset 330df83 in mainline for uspace/lib/c/generic/inet/addr.c
- Timestamp:
- 2013-07-19T20:42:57Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f4cbf9dd
- Parents:
- 8a8a08d1 (diff), cd18cd1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/inet/addr.c
r8a8a08d1 r330df83 260 260 } 261 261 262 int inet_naddr_compare(const inet_naddr_t *naddr, const inet_addr_t *addr) 263 { 264 if (naddr->family != addr->family) 265 return 0; 266 267 switch (naddr->family) { 268 case AF_INET: 269 return (naddr->addr == addr->addr); 270 case AF_INET6: 271 return addr128_compare(naddr->addr6, addr->addr6); 272 default: 273 return 0; 274 } 275 } 276 262 277 int inet_naddr_compare_mask(const inet_naddr_t *naddr, const inet_addr_t *addr) 263 278 {
Note:
See TracChangeset
for help on using the changeset viewer.