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