inform.c (d04ccbb3) inform.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

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

82
83 dpkt = init_pkt(dsmp, INFORM);
84 IN6_V4MAPPED_TO_INADDR(&dsmp->dsm_lif->lif_v6addr,
85 &dpkt->pkt->ciaddr);
86
87 (void) add_pkt_opt16(dpkt, CD_MAX_DHCP_SIZE,
88 htons(dsmp->dsm_lif->lif_pif->pif_max -
89 sizeof (struct udpiphdr)));
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

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

82
83 dpkt = init_pkt(dsmp, INFORM);
84 IN6_V4MAPPED_TO_INADDR(&dsmp->dsm_lif->lif_v6addr,
85 &dpkt->pkt->ciaddr);
86
87 (void) add_pkt_opt16(dpkt, CD_MAX_DHCP_SIZE,
88 htons(dsmp->dsm_lif->lif_pif->pif_max -
89 sizeof (struct udpiphdr)));
90 (void) add_pkt_opt(dpkt, CD_CLASS_ID, class_id, class_id_len);
90 if (class_id_len != 0) {
91 (void) add_pkt_opt(dpkt, CD_CLASS_ID, class_id,
92 class_id_len);
93 }
91 (void) add_pkt_prl(dpkt, dsmp);
92 (void) add_pkt_opt(dpkt, CD_END, NULL, 0);
93
94 IN6_V4MAPPED_TO_IPADDR(&dsmp->dsm_server, server);
95 if (!send_pkt(dsmp, dpkt, server, NULL)) {
96 dhcpmsg(MSG_ERROR, "dhcp_inform: send_pkt failed");
97 goto failed;
98 }

--- 26 unchanged lines hidden ---
94 (void) add_pkt_prl(dpkt, dsmp);
95 (void) add_pkt_opt(dpkt, CD_END, NULL, 0);
96
97 IN6_V4MAPPED_TO_IPADDR(&dsmp->dsm_server, server);
98 if (!send_pkt(dsmp, dpkt, server, NULL)) {
99 dhcpmsg(MSG_ERROR, "dhcp_inform: send_pkt failed");
100 goto failed;
101 }

--- 26 unchanged lines hidden ---