Changes in uspace/srv/net/inetsrv/inet_link.c [1f97352:695b6ff] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inet_link.c
r1f97352 r695b6ff 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.