Changes in uspace/srv/net/inetsrv/inet_link.c [695b6ff:1f97352] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inet_link.c
r695b6ff r1f97352 140 140 already_known = false; 141 141 142 list_foreach(inet_link_list, link_list, inet_link_t, ilink) { 142 list_foreach(inet_link_list, ilink_link) { 143 inet_link_t *ilink = list_get_instance(ilink_link, 144 inet_link_t, link_list); 143 145 if (ilink->svc_id == svcs[i]) { 144 146 already_known = true; … … 235 237 inet_addrobj_t *addr = NULL; 236 238 237 /* XXX FIXME Cannot rely on loopback being the first IP link service!! */238 239 if (first_link) { 239 240 addr = inet_addrobj_new(); … … 241 242 inet_naddr(&addr->naddr, 127, 0, 0, 1, 24); 242 243 first_link = false; 244 } else { 245 /* 246 * FIXME 247 * Setting static IPv4 address for testing purposes: 248 * 10.0.2.15/24 249 */ 250 addr = inet_addrobj_new(); 251 252 inet_naddr(&addr->naddr, 10, 0, 2, 15, 24); 243 253 } 244 254 … … 482 492 fibril_mutex_lock(&inet_discovery_lock); 483 493 484 list_foreach(inet_link_list, link_list, inet_link_t, ilink) { 494 list_foreach(inet_link_list, elem) { 495 inet_link_t *ilink = list_get_instance(elem, inet_link_t, 496 link_list); 497 485 498 if (ilink->svc_id == link_id) { 486 499 fibril_mutex_unlock(&inet_discovery_lock);
Note:
See TracChangeset
for help on using the changeset viewer.