Lines Matching refs:poep
445 display_pppoe(FILE *out, const poep_t *poep, int plen, const ppptun_atype *pap) in display_pppoe() argument
461 tagp = (const uint8_t *)(poep + 1); in display_pppoe()
462 while (poe_tagcheck(poep, plen, tagp)) { in display_pppoe()
585 send_pppoe(const poep_t *poep, const char *msgname, in send_pppoe() argument
600 data.len = poe_length(poep) + sizeof (*poep); in send_pppoe()
601 data.buf = (caddr_t)poep; in send_pppoe()
619 poep_t *poep; in send_padi() local
622 poep = poe_mkheader(pkt_output, POECODE_PADI, 0); in send_padi()
623 (void) poe_add_str(poep, POETT_SERVICE, service); in send_padi()
624 (void) poe_add_long(poep, POETT_UNIQ, localid); in send_padi()
628 return (send_pppoe(poep, "PADI", &destaddr)); in send_padi()
654 poep_t *poep; in find_all_servers() local
689 poep = (poep_t *)pkt_input; in find_all_servers()
692 if (poe_code(poep) == POECODE_PADO) { in find_all_servers()
693 display_pppoe(stdout, poep, data.len, in find_all_servers()
832 poep_t *poep; in send_padr() local
845 poep = poe_mkheader(pkt_output, POECODE_PADR, 0); in send_padr()
846 (void) poe_two_longs(poep, POETT_UNIQ, psm->poesm_localid, in send_padr()
869 (void) poe_tag_copy(poep, tagp); in send_padr()
889 (void) poe_tag_copy(poep, tagp); in send_padr()
896 (void) poe_add_str(poep, POETT_SERVICE, ""); in send_padr()
901 return (send_pppoe(poep, "PADR", &pado->poemsg_sender)); in send_padr()
1407 poep_t *poep; in find_server() local
1479 poep = (poep_t *)pkt_input; in find_server()
1482 pmsg.poemsg_data = poep; in find_server()
1494 myname, poe_codename(poep->poep_code), in find_server()
1499 if ((poep->poep_code == POECODE_PADT || in find_server()
1500 poep->poep_code == POECODE_PADS) && in find_server()
1514 if (poep->poep_code == POECODE_PADS) { in find_server()
1535 switch (poep->poep_code) { in find_server()
1564 poe_codename(poep->poep_code), in find_server()
1565 poep->poep_code); in find_server()