| /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
| common.c | 153 poep_t *poep; local 159 poep = (poep_t *)dptr; 160 poep->poep_version_type = POE_VERSION; 161 poep->poep_code = codeval; 162 poep->poep_session_id = htons(sessionid); 163 poep->poep_length = htons(0); 164 return (poep); 172 poe_tagcheck(const poep_t *poep, int length, const uint8_t *tptr) 177 if (poep == NULL || !IS_P2ALIGNED(poep, sizeof (uint16_t)) | [all...] |
| pppoed.c | 259 poep_t *poep = (poep_t *)databuf; local 287 poep = poe_mkheader(pkt_output, POECODE_PADT, 292 data.len = poe_length(poep) + sizeof (*poep); 293 data.buf = (caddr_t)poep; 318 if (datalen < sizeof (*poep)) { 325 if (poep->poep_code == POECODE_PADI) { 327 } else if (poep->poep_code == POECODE_PADR) { 331 poe_codename(poep->poep_code), ehost(&ptc->ptc_address)); 335 poe_codename(poep->poep_code)) [all...] |
| pppoec.c | 445 display_pppoe(FILE *out, const poep_t *poep, int plen, const ppptun_atype *pap) 461 tagp = (const uint8_t *)(poep + 1); 462 while (poe_tagcheck(poep, plen, tagp)) { 585 send_pppoe(const poep_t *poep, const char *msgname, 600 data.len = poe_length(poep) + sizeof (*poep); 601 data.buf = (caddr_t)poep; 619 poep_t *poep; local 622 poep = poe_mkheader(pkt_output, POECODE_PADI, 0); 623 (void) poe_add_str(poep, POETT_SERVICE, service) 654 poep_t *poep; local 832 poep_t *poep; local 1407 poep_t *poep; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/ |
| pppoe.c | 309 const poep_t *poep; local 328 poep = (const poep_t *)data->buf; 329 tagp = (const uint8_t *)poep + offsetof(poep_t, poep_length); 331 tagp = (const uint8_t *)(poep + 1); 332 switch (poep->poep_code) { 345 if (poep->poep_code == POECODE_PADM) { 380 if (poep->poep_code == POECODE_PADM) { 391 if (poep->poep_code == POECODE_PADM) { 398 warn("unexpected PPPoE code %d from %s", poep->poep_code,
|
| /onnv/onnv-gate/usr/src/uts/common/io/ppp/sppptun/ |
| sppptun.c | 791 poep_t *poep; local 935 mp = prependb(mp, sizeof (*poep) + len, POE_HDR_ALIGN); 938 poep = (poep_t *)mp->b_rptr; 939 poep->poep_version_type = POE_VERSION; 940 poep->poep_code = POECODE_DATA; 941 poep->poep_session_id = htons(tcl->tcl_rsessid); 942 poep->poep_length = htons(msgsize(mp) - 943 sizeof (*poep)); 945 *(char *)(poep + 1) = '\0'; 2077 const poep_t *poep; local [all...] |