Lines Matching refs:p

550 pppoe_disc_input(struct netif *netif, struct pbuf *p)
554 pppoe_dispatch_disc_pkt(netif, p);
556 pbuf_free(p);
671 u8_t *p;
703 p = (u8_t*)pb->payload + sizeof (struct eth_hdr);
705 PPPOE_ADD_HEADER(p, PPPOE_CODE_PADI, 0, (u16_t)len);
706 PPPOE_ADD_16(p, PPPOE_TAG_SNAME);
709 PPPOE_ADD_16(p, l1);
710 MEMCPY(p, sc->sc_service_name, l1);
711 p += l1;
715 PPPOE_ADD_16(p, 0);
719 PPPOE_ADD_16(p, PPPOE_TAG_ACNAME);
720 PPPOE_ADD_16(p, l2);
721 MEMCPY(p, sc->sc_concentrator_name, l2);
722 p += l2;
725 PPPOE_ADD_16(p, PPPOE_TAG_HUNIQUE);
726 PPPOE_ADD_16(p, sizeof(sc));
727 MEMCPY(p, &sc, sizeof sc);
892 u8_t *p;
919 p = (u8_t*)pb->payload + sizeof (struct eth_hdr);
920 PPPOE_ADD_HEADER(p, PPPOE_CODE_PADR, 0, len);
921 PPPOE_ADD_16(p, PPPOE_TAG_SNAME);
924 PPPOE_ADD_16(p, l1);
925 MEMCPY(p, sc->sc_service_name, l1);
926 p += l1;
930 PPPOE_ADD_16(p, 0);
933 PPPOE_ADD_16(p, PPPOE_TAG_ACCOOKIE);
934 PPPOE_ADD_16(p, sc->sc_ac_cookie_len);
935 MEMCPY(p, sc->sc_ac_cookie, sc->sc_ac_cookie_len);
936 p += sc->sc_ac_cookie_len;
938 PPPOE_ADD_16(p, PPPOE_TAG_HUNIQUE);
939 PPPOE_ADD_16(p, sizeof(sc));
940 MEMCPY(p, &sc, sizeof sc);
952 u8_t *p;
965 p = (u8_t*)(ethhdr + 1);
966 PPPOE_ADD_HEADER(p, PPPOE_CODE_PADT, session, 0);
980 u8_t *p;
998 p = (u8_t*)pb->payload + sizeof (struct eth_hdr);
999 PPPOE_ADD_HEADER(p, PPPOE_CODE_PADO, 0, len);
1000 PPPOE_ADD_16(p, PPPOE_TAG_ACCOOKIE);
1001 PPPOE_ADD_16(p, sizeof(sc));
1002 MEMCPY(p, &sc, sizeof(sc));
1003 p += sizeof(sc);
1004 PPPOE_ADD_16(p, PPPOE_TAG_HUNIQUE);
1005 PPPOE_ADD_16(p, sc->sc_hunique_len);
1006 MEMCPY(p, sc->sc_hunique, sc->sc_hunique_len);
1014 u8_t *p;
1035 p = (u8_t*)pb->payload + sizeof (struct eth_hdr);
1036 PPPOE_ADD_HEADER(p, PPPOE_CODE_PADS, sc->sc_session, len);
1037 PPPOE_ADD_16(p, PPPOE_TAG_SNAME);
1039 PPPOE_ADD_16(p, l1);
1040 MEMCPY(p, sc->sc_service_name, l1);
1041 p += l1;
1043 PPPOE_ADD_16(p, 0);
1045 PPPOE_ADD_16(p, PPPOE_TAG_HUNIQUE);
1046 PPPOE_ADD_16(p, sc->sc_hunique_len);
1047 MEMCPY(p, sc->sc_hunique, sc->sc_hunique_len);
1055 u8_t *p;
1076 p = (u8_t*)pb->payload + sizeof(struct eth_hdr);
1077 PPPOE_ADD_HEADER(p, 0, sc->sc_session, len);