Changeset 99c2c69e in mainline for uspace/srv/net/inetsrv/inet_link.c
- Timestamp:
- 2013-09-13T00:36:30Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 67fbd5e
- Parents:
- 7f84430 (diff), 11d41be5 (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/inet_link.c
r7f84430 r99c2c69e 140 140 already_known = false; 141 141 142 list_foreach(inet_link_list, ilink_link) { 143 inet_link_t *ilink = list_get_instance(ilink_link, 144 inet_link_t, link_list); 142 list_foreach(inet_link_list, link_list, inet_link_t, ilink) { 145 143 if (ilink->svc_id == svcs[i]) { 146 144 already_known = true; … … 237 235 inet_addrobj_t *addr = NULL; 238 236 237 /* XXX FIXME Cannot rely on loopback being the first IP link service!! */ 239 238 if (first_link) { 240 239 addr = inet_addrobj_new(); … … 242 241 inet_naddr(&addr->naddr, 127, 0, 0, 1, 24); 243 242 first_link = false; 244 } else {245 /*246 * FIXME247 * Setting static IPv4 address for testing purposes:248 * 10.0.2.15/24249 */250 addr = inet_addrobj_new();251 252 inet_naddr(&addr->naddr, 10, 0, 2, 15, 24);253 243 } 254 244 … … 492 482 fibril_mutex_lock(&inet_discovery_lock); 493 483 494 list_foreach(inet_link_list, elem) { 495 inet_link_t *ilink = list_get_instance(elem, inet_link_t, 496 link_list); 497 484 list_foreach(inet_link_list, link_list, inet_link_t, ilink) { 498 485 if (ilink->svc_id == link_id) { 499 486 fibril_mutex_unlock(&inet_discovery_lock);
Note:
See TracChangeset
for help on using the changeset viewer.