Changeset e3811c9 in mainline


Ignore:
Timestamp:
2015-04-29T17:25:11Z (9 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3bd1b3ab
Parents:
86cf96d
Message:

Work around issue with simultaneous DHCP sessions (thx Jan Buchar).

Location:
uspace/srv/net/dhcp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/dhcp/dhcp.c

    r86cf96d re3811c9  
    562562        }
    563563
     564        /* XXX Work around multiple simultaneous sessions issue */
     565        dhcp_transport_fini(&dlink->dt);
     566
    564567        log_msg(LOG_DEFAULT, LVL_NOTE, "%s: Successfully configured.",
    565568            dlink->link_info.name);
  • uspace/srv/net/dhcp/transport.c

    r86cf96d re3811c9  
    9595        int rc;
    9696
     97        if (dt->fd < 0) {
     98                /* Terminated */
     99                return EIO;
     100        }
     101
    97102        src_addr_size = sizeof(src_addr);
    98103        rc = recvfrom(dt->fd, msgbuf, MAX_MSG_SIZE, 0,
     
    166171{
    167172        closesocket(dt->fd);
     173        dt->fd = -1;
    168174}
    169175
Note: See TracChangeset for help on using the changeset viewer.