Changeset 8e7c9fe in mainline for uspace/srv/net/dhcp/dhcp.c


Ignore:
Timestamp:
2014-09-12T03:45:25Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c53b58e
Parents:
3eb0c85 (diff), 105d8d6 (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:

merge mainline changes

most usb changes were reverted. blink and usbmass were fixed
known problems:
ehci won't initialize
usbmast asserts on unmount (happens on mainline too)

File:
1 edited

Legend:

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

    r3eb0c85 r8e7c9fe  
    304304                        break;
    305305                case opt_dns_server:
    306                         if (opt_len != 4)
     306                        if (opt_len < 4 || opt_len % 4 != 0)
    307307                                return EINVAL;
     308                        /* XXX Handle multiple DNS servers properly */
    308309                        inet_addr_set(dhcp_uint32_decode(&msgb[i]),
    309310                            &offer->dns_server);
     
    435436
    436437        dlink->link_id = link_id;
    437         dlink->timeout = fibril_timer_create();
     438        dlink->timeout = fibril_timer_create(NULL);
    438439        if (dlink->timeout == NULL) {
    439440                rc = ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.