Searched defs:poep (Results 1 - 7 of 7) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpppoe.c309 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,
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/
H A Dpppoed.c259 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
[all...]
H A Dcommon.c153 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) argument
177 if (poep == NULL || !IS_P2ALIGNED(poep, sizeo
201 poe_tag_insert(poep_t *poep, uint16_t ttype, const void *data, size_t dlen) argument
225 poe_add_str(poep_t *poep, uint16_t ttype, const char *str) argument
235 poe_add_long(poep_t *poep, uint16_t ttype, uint32_t val) argument
246 poe_two_longs(poep_t *poep, uint16_t ttype, uint32_t val1, uint32_t val2) argument
261 poe_tag_copy(poep_t *poep, const uint8_t *tagp) argument
[all...]
H A Dpppoec.c445 display_pppoe(FILE *out, const poep_t *poep, int plen, const ppptun_atype *pap) argument
461 tagp = (const uint8_t *)(poep + 1);
462 while (poe_tagcheck(poep, plen, tagp)) {
585 send_pppoe(const poep_t *poep, const char *msgname, argument
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_SERVIC
654 poep_t *poep; local
832 poep_t *poep; local
1407 poep_t *poep; local
[all...]
H A Doptions.c1882 locate_service(poep_t *poep, int plen, const char *iname, ppptun_atype *pap, argument
1898 ispadi = poep->poep_code == POECODE_PADI;
1937 tagp = (const uint8_t *)(poep + 1);
1938 while (poe_tagcheck(poep, plen, tagp)) {
2072 launch_service(int tunfd, poep_t *poep, void *srvp, struct ppptun_control *ptc) argument
2224 poep = poe_mkheader(pkt_output, POECODE_PADT, ptp.ptp_lsessid);
2225 poep->poep_session_id = htons(ptp.ptp_lsessid);
2226 (void) poe_add_str(poep, POETT_SYSERR, cp);
2230 data.len = poe_length(poep) + sizeof (*poep);
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_pppoe.c93 interpret_pppoe(int flags, poep_t *poep, int len) argument
95 uint8_t code = poep->poep_code;
101 payload = (uint8_t *)poep + sizeof (poep_t);
111 "Version = %d", POE_VERS(poep->poep_version_type));
114 "Type = %d", POE_TYPE(poep->poep_version_type));
120 "Session Id = %d", ntohs(poep->poep_session_id));
123 "Length = %d bytes", ntohs(poep->poep_length));
128 len = MIN(len, ntohs(poep->poep_length));
130 if (poep->poep_code != 0 && poep
[all...]
/illumos-gate/usr/src/uts/common/io/ppp/sppptun/
H A Dsppptun.c791 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...]

Completed in 57 milliseconds