Changeset 99c2c69e in mainline for uspace/srv/net/inetsrv/inet_link.c


Ignore:
Timestamp:
2013-09-13T00:36:30Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
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.
Message:

mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inet_link.c

    r7f84430 r99c2c69e  
    140140                already_known = false;
    141141
    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) {
    145143                        if (ilink->svc_id == svcs[i]) {
    146144                                already_known = true;
     
    237235        inet_addrobj_t *addr = NULL;
    238236       
     237        /* XXX FIXME Cannot rely on loopback being the first IP link service!! */
    239238        if (first_link) {
    240239                addr = inet_addrobj_new();
     
    242241                inet_naddr(&addr->naddr, 127, 0, 0, 1, 24);
    243242                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);
    253243        }
    254244       
     
    492482        fibril_mutex_lock(&inet_discovery_lock);
    493483
    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) {
    498485                if (ilink->svc_id == link_id) {
    499486                        fibril_mutex_unlock(&inet_discovery_lock);
Note: See TracChangeset for help on using the changeset viewer.