Changes in uspace/srv/net/dhcp/dhcp.c [8d58fca:3e6bca8] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dhcp/dhcp.c
r8d58fca r3e6bca8 1 1 /* 2 * Copyright (c) 20 13Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 42 42 #include <fibril_synch.h> 43 43 #include <inet/addr.h> 44 #include <inet/eth_addr.h> 44 45 #include <inet/dnsr.h> 45 46 #include <inet/inetcfg.h> … … 157 158 hdr->op = op_bootrequest; 158 159 hdr->htype = 1; /* AHRD_ETHERNET */ 159 hdr->hlen = sizeof(addr48_t);160 hdr->hlen = ETH_ADDR_SIZE; 160 161 hdr->xid = host2uint32_t_be(42); 161 162 hdr->flags = flag_broadcast; 162 163 163 addr48(dlink->link_info.mac_addr, hdr->chaddr);164 eth_addr_encode(&dlink->link_info.mac_addr, hdr->chaddr); 164 165 hdr->opt_magic = host2uint32_t_be(dhcp_opt_magic); 165 166 … … 185 186 hdr->flags = flag_broadcast; 186 187 hdr->ciaddr = host2uint32_t_be(offer->oaddr.addr); 187 addr48(dlink->link_info.mac_addr, hdr->chaddr);188 eth_addr_encode(&dlink->link_info.mac_addr, hdr->chaddr); 188 189 hdr->opt_magic = host2uint32_t_be(dhcp_opt_magic); 189 190
Note:
See TracChangeset
for help on using the changeset viewer.