Lines Matching defs:ip
36 #include <gpxe/ip.h>
76 DHCP_WORD ( ETH_MAX_MTU - 20 /* IP header */ - 8 /* UDP header */ ),
209 /** DHCP offer is valid for IP lease */
217 /** IP address of server granting offer */
220 /** IP address being offered, or 0.0.0.0 for a pure proxy */
221 struct in_addr ip;
339 * IP+PXE are tried before @a type alone), then by order of receipt.
413 /* Identify offered IP address */
434 offer->ip = dhcppkt->dhcphdr->yiaddr;
469 if ( offer->ip.s_addr &&
566 DBGC ( dhcp, " for %s\n", inet_ntoa ( offer->ip ) );
574 /* Set requested IP address */
576 &offer->ip, sizeof ( offer->ip ) ) ) != 0 )
599 struct in_addr ip;
621 /* Identify leased IP address */
622 ip = dhcppkt->dhcphdr->yiaddr;
623 if ( ip.s_addr )
624 DBGC ( dhcp, " for %s", inet_ntoa ( ip ) );
636 dhcp->local.sin_addr = ip;
651 /* IP offer instructs us to ignore PXE */
653 /* PXE settings already registered with IP offer */
791 /* Prefer not to use only half of a PXE+IP offer if we
798 * offers, or might be coupled to a new IP address).
799 * We should probably DHCPRELEASE our old IP, but the
1075 * @v ciaddr Client IP address
1105 /* Set client IP address */
1379 * the IP address and source port explicitly on each transmission.
1449 * @v ip IP address list to fill in
1451 * The caller must ensure that the IP address list has sufficient
1455 size_t raw_len, struct in_addr *ip ) {
1467 ip[ server->num_ip ] );
1475 *(ip++) = server->ip[i];
1504 struct in_addr *ip;
1508 /* Get upper bound for PXE boot server IP address list */
1514 dhcp = zalloc ( sizeof ( *dhcp ) + sizeof ( *ip ) /* mcast */ +
1515 sizeof ( *ip ) /* bcast */ + pxebs_list_len +
1516 sizeof ( *ip ) /* terminator */ );
1530 /* Construct PXE boot server IP address lists */
1533 ip = ( ( ( void * ) dhcp ) + sizeof ( *dhcp ) );
1534 dhcp->pxe_attempt = ip;
1536 fetch_ipv4_setting ( NULL, &pxe_boot_server_mcast_setting, ip);
1537 if ( ip->s_addr )
1538 ip++;
1541 (ip++)->s_addr = INADDR_BROADCAST;
1543 dhcp->pxe_accept = ip;
1549 pxebs_list ( dhcp, buf, sizeof ( buf ), ip );
1560 for ( ip = dhcp->pxe_attempt ; ip->s_addr ; ip++ )
1561 DBGC ( dhcp, " %s", inet_ntoa ( *ip ) );
1565 for ( ip = dhcp->pxe_accept ; ip->s_addr ; ip++ )
1566 DBGC ( dhcp, " %s", inet_ntoa ( *ip ) );