Changeset af259da in mainline for uspace/srv/net/dhcp/dhcp.c


Ignore:
Timestamp:
2022-03-04T13:30:23Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5c27e77
Parents:
b9be9b0
git-author:
Jiri Svoboda <jiri@…> (2022-03-03 19:29:57)
git-committer:
Jiri Svoboda <jiri@…> (2022-03-04 13:30:23)
Message:

DHCP request must not have ciaddr filled in when Selecting

ciaddr is to be filled in with the current client IP address
if and only if we are renewing the address lease, not if
we are requesting a new address. This is mandated by the standard.

File:
1 edited

Legend:

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

    rb9be9b0 raf259da  
    185185        hdr->xid = host2uint32_t_be(42);
    186186        hdr->flags = flag_broadcast;
    187         hdr->ciaddr = host2uint32_t_be(offer->oaddr.addr);
    188187        eth_addr_encode(&dlink->link_info.mac_addr, hdr->chaddr);
    189188        hdr->opt_magic = host2uint32_t_be(dhcp_opt_magic);
Note: See TracChangeset for help on using the changeset viewer.