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