Home | History | Annotate | Download | only in rp-pppoe

Lines Matching defs:dlp

83 void expecting(int prim, union DL_primitives *dlp);
713 union DL_primitives *dlp;
727 dlp = (union DL_primitives*) buf;
747 dl_abssaplen = ABS(dlp->info_ack.dl_sap_length);
748 dl_saplen = dlp->info_ack.dl_sap_length;
749 if (ETHERADDRL != (dlp->info_ack.dl_addr_length - dl_abssaplen))
754 memcpy(hwaddr, (u_char*)((char*)(dlp) + (int)(dlp->info_ack.dl_addr_offset)), ETHERADDRL);
808 union DL_primitives *dlp;
811 dlp = (union DL_primitives*) buf;
813 dlp->unitdata_req.dl_primitive = DL_UNITDATA_REQ;
814 dlp->unitdata_req.dl_dest_addr_length = addrlen;
815 dlp->unitdata_req.dl_dest_addr_offset = sizeof (dl_unitdata_req_t);
816 dlp->unitdata_req.dl_priority.dl_min = minpri;
817 dlp->unitdata_req.dl_priority.dl_max = maxpri;
819 (void) memcpy(OFFADDR(dlp, sizeof (dl_unitdata_req_t)), addrp, addrlen);
835 union DL_primitives *dlp;
845 dlp = (union DL_primitives *) ctl.buf;
847 expecting(DL_INFO_ACK, dlp);
909 union DL_primitives *dlp;
919 dlp = (union DL_primitives *) ctl.buf;
921 expecting(DL_OK_ACK, dlp);
941 union DL_primitives *dlp;
951 dlp = (union DL_primitives *) ctl.buf;
953 expecting(DL_BIND_ACK, dlp);
1049 void expecting(int prim, union DL_primitives *dlp)
1051 if (dlp->dl_primitive != (u_long)prim) {
1053 sprintf(buffer, "expected %s got %s", dlprim(prim), dlprim(dlp->dl_primitive));