renew.c (d04ccbb3) renew.c (f4b3ec61)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 466 unchanged lines hidden (view full) ---

475 /*
476 * The max dhcp message size option is set to the interface
477 * max, minus the size of the udp and ip headers.
478 */
479 (void) add_pkt_opt16(dpkt, CD_MAX_DHCP_SIZE,
480 htons(lif->lif_max - sizeof (struct udpiphdr)));
481 (void) add_pkt_opt32(dpkt, CD_LEASE_TIME, htonl(DHCP_PERM));
482
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 466 unchanged lines hidden (view full) ---

475 /*
476 * The max dhcp message size option is set to the interface
477 * max, minus the size of the udp and ip headers.
478 */
479 (void) add_pkt_opt16(dpkt, CD_MAX_DHCP_SIZE,
480 htons(lif->lif_max - sizeof (struct udpiphdr)));
481 (void) add_pkt_opt32(dpkt, CD_LEASE_TIME, htonl(DHCP_PERM));
482
483 (void) add_pkt_opt(dpkt, CD_CLASS_ID, class_id, class_id_len);
483 if (class_id_len != 0) {
484 (void) add_pkt_opt(dpkt, CD_CLASS_ID, class_id,
485 class_id_len);
486 }
484 (void) add_pkt_prl(dpkt, dsmp);
485 /*
486 * dsm_reqhost was set for this state machine in
487 * dhcp_selecting() if the REQUEST_HOSTNAME option was set and
488 * a host name was found.
489 */
490 if (dsmp->dsm_reqhost != NULL) {
491 (void) add_pkt_opt(dpkt, CD_HOSTNAME, dsmp->dsm_reqhost,

--- 62 unchanged lines hidden ---
487 (void) add_pkt_prl(dpkt, dsmp);
488 /*
489 * dsm_reqhost was set for this state machine in
490 * dhcp_selecting() if the REQUEST_HOSTNAME option was set and
491 * a host name was found.
492 */
493 if (dsmp->dsm_reqhost != NULL) {
494 (void) add_pkt_opt(dpkt, CD_HOSTNAME, dsmp->dsm_reqhost,

--- 62 unchanged lines hidden ---