Lines Matching defs:pl
279 static PKT_LIST *pl = NULL;
982 pl = kmem_alloc(sizeof (PKT_LIST), KM_SLEEP);
983 pl->len = dhcacklen;
984 pl->pkt = kmem_alloc(pl->len, KM_SLEEP);
985 bcopy(dhcack, pl->pkt, dhcacklen);
997 bcopy((uchar_t *)pl->pkt + 20, dhcp_server_ip, 4);
998 bzero(pl->opts, (DHCP_LAST_OPT + 1) * sizeof (DHCP_OPT *));
999 bzero(pl->vs, (VS_OPTION_END - VS_OPTION_START + 1) *
1002 if (dhcp_options_scan(pl, B_TRUE) != 0) {
1005 kmem_free(pl->pkt, pl->len);
1006 kmem_free(pl, sizeof (PKT_LIST));
1007 pl = NULL;
1012 if (pl->opts[CD_HOSTNAME] != NULL) {
1013 doptp = pl->opts[CD_HOSTNAME];
1029 if (pl->opts[CD_NIS_DOMAIN] != NULL) {
1030 doptp = pl->opts[CD_NIS_DOMAIN];
1048 if (pl->opts[CD_SUBNETMASK] != NULL) {
1049 doptp = pl->opts[CD_SUBNETMASK];
1051 pl->opts[CD_SUBNETMASK] = NULL;
1062 myIPaddr.s_addr = pl->pkt->yiaddr.s_addr;
1077 if (pl->opts[CD_BROADCASTADDR] != NULL) {
1078 doptp = pl->opts[CD_BROADCASTADDR];
1080 pl->opts[CD_BROADCASTADDR] = NULL;
1098 if (rc = dlifconfig(tiptr, &pl->pkt->yiaddr, &subnet,
1101 kmem_free(pl->pkt, pl->len);
1102 kmem_free(pl, sizeof (PKT_LIST));
1103 pl = NULL;
1109 if (pl->opts[CD_ROUTER] != NULL) {
1110 doptp = pl->opts[CD_ROUTER];
1112 pl->opts[CD_ROUTER] = NULL;
1197 if (pl == NULL)
1202 doptp = pl->vs[VS_NFSMNT_ROOTPATH];
1216 doptp = pl->vs[VS_NFSMNT_ROOTSRVR_NAME];
1231 doptp = pl->vs[VS_NFSMNT_ROOTSRVR_IP];
1249 doptp = pl->vs[VS_NFSMNT_ROOTOPTS];
1261 /* now we are done with pl, just free it */
1262 kmem_free(pl->pkt, pl->len);
1263 kmem_free(pl, sizeof (PKT_LIST));
1264 pl = NULL;