Changeset c42f50d in mainline for uspace/srv/net/inetsrv/sroute.c
- Timestamp:
- 2013-10-05T11:53:43Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cbfc8b7
- Parents:
- 408424e (diff), 3e896e1 (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/srv/net/inetsrv/sroute.c
r408424e rc42f50d 95 95 inet_sroute_t *inet_sroute_find(inet_addr_t *addr) 96 96 { 97 uint16_t addr_af= inet_addr_get(addr, NULL, NULL);97 ip_ver_t addr_ver = inet_addr_get(addr, NULL, NULL); 98 98 99 99 inet_sroute_t *best = NULL; … … 104 104 list_foreach(sroute_list, sroute_list, inet_sroute_t, sroute) { 105 105 uint8_t dest_bits; 106 uint16_t dest_af= inet_naddr_get(&sroute->dest, NULL, NULL,106 ip_ver_t dest_ver = inet_naddr_get(&sroute->dest, NULL, NULL, 107 107 &dest_bits); 108 108 109 109 /* Skip comparison with different address family */ 110 if (addr_ af != dest_af)110 if (addr_ver != dest_ver) 111 111 continue; 112 112
Note:
See TracChangeset
for help on using the changeset viewer.