Lines Matching refs:dhcphdr
414 if ( dhcppkt->dhcphdr->yiaddr.s_addr ) in dhcp_rx_offer()
415 DBGC ( dhcp, " for %s", inet_ntoa ( dhcppkt->dhcphdr->yiaddr )); in dhcp_rx_offer()
434 offer->ip = dhcppkt->dhcphdr->yiaddr; in dhcp_rx_offer()
622 ip = dhcppkt->dhcphdr->yiaddr; in dhcp_request_rx()
991 typeof ( ( ( struct dhcphdr * ) NULL )->chaddr ) chaddr; in dhcp_chaddr()
1039 struct dhcphdr *dhcphdr = data; in dhcp_create_packet() local
1044 if ( max_len < ( sizeof ( *dhcphdr ) + options_len ) ) in dhcp_create_packet()
1048 memset ( dhcphdr, 0, max_len ); in dhcp_create_packet()
1049 dhcphdr->xid = dhcp_xid ( netdev ); in dhcp_create_packet()
1050 dhcphdr->magic = htonl ( DHCP_MAGIC_COOKIE ); in dhcp_create_packet()
1051 dhcphdr->htype = ntohs ( netdev->ll_protocol->ll_proto ); in dhcp_create_packet()
1052 dhcphdr->op = dhcp_op[msgtype]; in dhcp_create_packet()
1053 chaddr = dhcp_chaddr ( netdev, &dhcphdr->hlen, &dhcphdr->flags ); in dhcp_create_packet()
1054 memcpy ( dhcphdr->chaddr, chaddr, dhcphdr->hlen ); in dhcp_create_packet()
1055 memcpy ( dhcphdr->options, options, options_len ); in dhcp_create_packet()
1106 dhcppkt->dhcphdr->ciaddr = ciaddr; in dhcp_create_request()
1254 struct dhcphdr *dhcphdr; in dhcp_deliver_iob() local
1279 dhcphdr = ( ( ( void * ) dhcppkt ) + sizeof ( *dhcppkt ) ); in dhcp_deliver_iob()
1280 memcpy ( dhcphdr, iobuf->data, data_len ); in dhcp_deliver_iob()
1281 dhcppkt_init ( dhcppkt, dhcphdr, data_len ); in dhcp_deliver_iob()
1292 if ( dhcphdr->xid != dhcp_xid ( dhcp->netdev ) ) { in dhcp_deliver_iob()