Changeset 23ce2d9 in mainline


Ignore:
Timestamp:
2014-06-30T21:28:36Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9787a93
Parents:
3daf1979
Message:

Deal with multiple DNS servers in DHCP offer - use the first one. Thx to Agnieszka Tabaka.

File:
1 edited

Legend:

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

    r3daf1979 r23ce2d9  
    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);
Note: See TracChangeset for help on using the changeset viewer.