Lines Matching refs:plp

155  * the argument plp. Duplicates are deleted.
160 * found, then the argument plp is returned.
164 * be ok. Since the argument plp may be destroyed, it is assumed to be
168 refresh_pktlist(dsvc_clnt_t *pcd, PKT_LIST *plp)
177 if (match_plp(plp, wplp)) {
186 * wplp. The synonyms are used because moldy plp's
187 * will be nuked, and the plp to return will be
205 retplp = plp;
210 thr_self(), (void *)plp, (void *)retplp);
212 free_plp(plp);
492 PKT_LIST *plp, *tplp;
620 plp = (PKT_LIST *)smalloc(sizeof (PKT_LIST));
621 plp->offset = 0;
622 plp->len = data.len;
624 plp->pkt = (PKT *)data.buf;
626 if (plp->pkt->hops >= max_hops + 1) {
631 plp->pkt->hops);
633 free_plp(plp);
641 if (plp->pkt->hlen > sizeof (plp->pkt->chaddr))
642 plp->pkt->hlen = sizeof (plp->pkt->chaddr);
644 if (debug && plp->pkt->giaddr.s_addr != 0L &&
645 plp->pkt->giaddr.s_addr != ifp->addr.s_addr) {
649 &plp->pkt->giaddr, ntoab, sizeof (ntoab)));
658 err = relay_agent(ifp, plp);
663 err, (plp->pkt->op == BOOTREPLY) ?
674 free_plp(plp);
687 if (memcmp(plp->pkt->cookie, magic_cookie,
693 disp_cid(plp, cbuf, sizeof (cbuf)));
695 plp->rfc1048 = B_FALSE;
705 if (dhcp_options_scan(plp, B_FALSE) != 0) {
709 free_plp(plp);
715 plp->rfc1048 = B_TRUE;
720 * for this network/client. No need to lock plp,
723 if (plp->pkt->op != BOOTREQUEST) {
727 free_plp(plp);
734 determine_network(ifp, plp, &netaddr, &subnetaddr);
746 free_plp(plp);
751 get_clnt_id(plp, (uchar_t *)dn.dn_cid,
757 free_plp(plp);
786 pcd->pkthead = plp;
788 pcd->pkttail->next = plp;
789 plp->prev = pcd->pkttail;
791 pcd->pkttail = plp;
831 get_clnt_id(plp,
1103 * Detach the referenced plp from the client list.
1106 detach_plp(dsvc_clnt_t *pcd, PKT_LIST *plp)
1110 if (plp->prev == NULL) {
1111 pcd->pkthead = plp->next;
1115 plp->prev->next = plp->next;
1117 if (plp->next != NULL)
1118 plp->next->prev = plp->prev;
1120 pcd->pkttail = plp->prev;
1124 plp->prev = plp->next = NULL;
1430 PKT_LIST *plp, *plp_next;
1435 plp = pcd->pkthead;
1436 while (plp != NULL) {
1437 plp_next = plp;
1438 plp = plp->next;