Lines Matching refs:ph
298 struct pppoehdr *ph;
326 ph = (struct pppoehdr *) (ethhdr + 1);
327 if (ph->vertype != PPPOE_VERTYPE) {
328 printf("pppoe: unknown version/type packet: 0x%x\n", ph->vertype);
331 session = ntohs(ph->session);
332 plen = ntohs(ph->plen);
333 off += sizeof(*ph);
410 switch (ph->code) {
537 (u16_t)ph->code, session);
539 printf("pppoe: unknown code (0x%"X16_F") session = 0x%"X16_F"\n", (u16_t)ph->code, session);
565 struct pppoehdr *ph;
587 if (pb->len < sizeof(*ph)) {
591 ph = (struct pppoehdr *)pb->payload;
593 if (ph->vertype != PPPOE_VERTYPE) {
594 printf("pppoe (data): unknown version/type packet: 0x%x\n", ph->vertype);
597 if (ph->code != 0) {
601 session = ntohs(ph->session);
611 plen = ntohs(ph->plen);