Ignore:
File:
1 edited

Legend:

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

    r3e6bca8 r8d58fca  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2013 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4242#include <fibril_synch.h>
    4343#include <inet/addr.h>
    44 #include <inet/eth_addr.h>
    4544#include <inet/dnsr.h>
    4645#include <inet/inetcfg.h>
     
    158157        hdr->op = op_bootrequest;
    159158        hdr->htype = 1; /* AHRD_ETHERNET */
    160         hdr->hlen = ETH_ADDR_SIZE;
     159        hdr->hlen = sizeof(addr48_t);
    161160        hdr->xid = host2uint32_t_be(42);
    162161        hdr->flags = flag_broadcast;
    163162
    164         eth_addr_encode(&dlink->link_info.mac_addr, hdr->chaddr);
     163        addr48(dlink->link_info.mac_addr, hdr->chaddr);
    165164        hdr->opt_magic = host2uint32_t_be(dhcp_opt_magic);
    166165
     
    186185        hdr->flags = flag_broadcast;
    187186        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);
    189188        hdr->opt_magic = host2uint32_t_be(dhcp_opt_magic);
    190189
Note: See TracChangeset for help on using the changeset viewer.