Changeset 671b546 in mainline
- Timestamp:
- 2013-07-12T15:27:15Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f5f79cd
- Parents:
- 08ed137
- Location:
- uspace/lib/c
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/inet/addr.c
r08ed137 r671b546 70 70 { 71 71 memcpy(dst, src, 16); 72 } 73 74 int addr128_compare(const addr128_t a, const addr128_t b) 75 { 76 return memcmp(a, b, 16); 72 77 } 73 78 … … 234 239 return (a->addr == b->addr); 235 240 case AF_INET6: 236 return memcmp(&a->addr6, &b->addr6, 16);241 return addr128_compare(a->addr6, b->addr6); 237 242 default: 238 243 return 0; -
uspace/lib/c/include/inet/addr.h
r08ed137 r671b546 73 73 extern void addr128(const addr128_t, addr128_t); 74 74 75 extern int addr128_compare(const addr128_t, const addr128_t); 76 75 77 extern void host2addr128_t_be(const addr128_t, addr128_t); 76 78 extern void addr128_t_be2host(const addr128_t, addr128_t);
Note:
See TracChangeset
for help on using the changeset viewer.