Lines Matching refs:protocol
212 static err_t ppp_netif_output(struct netif *netif, struct pbuf *pb, u16_t protocol);
500 static err_t ppp_netif_output(struct netif *netif, struct pbuf *pb, u16_t protocol) { in ppp_netif_output() argument
508 || (protocol == PPP_IP && !pcb->if4_up) in ppp_netif_output()
511 || (protocol == PPP_IPV6 && !pcb->if6_up) in ppp_netif_output()
531 if (protocol == PPP_IP && pcb->vj_enabled) { in ppp_netif_output()
541 protocol = PPP_VJC_COMP; in ppp_netif_output()
547 protocol = PPP_VJC_UNCOMP; in ppp_netif_output()
565 if ((err = mppe_compress(pcb, &pcb->mppe_comp, &pb, protocol)) != ERR_OK) { in ppp_netif_output()
578 protocol = PPP_COMP; in ppp_netif_output()
587 err = pcb->link_cb->netif_output(pcb, pcb->link_ctx_cb, pb, protocol); in ppp_netif_output()
770 u16_t protocol; in ppp_input() local
781 protocol = (((u8_t *)pb->payload)[0] << 8) | ((u8_t*)pb->payload)[1]; in ppp_input()
787 pbuf_header(pb, -(s16_t)sizeof(protocol)); in ppp_input()
796 if (protocol != PPP_LCP && pcb->lcp_fsm.state != PPP_FSM_OPENED) { in ppp_input()
806 && !(protocol == PPP_LCP in ppp_input()
808 || protocol == PPP_LQR in ppp_input()
811 || protocol == PPP_PAP in ppp_input()
814 || protocol == PPP_CHAP in ppp_input()
817 || protocol == PPP_EAP in ppp_input()
820 ppp_dbglog("discarding proto 0x%x in phase %d", protocol, pcb->phase); in ppp_input()
832 if (pcb->settings.require_mppe && protocol != PPP_COMP && protocol < 0x8000) { in ppp_input()
838 if (protocol == PPP_COMP) { in ppp_input()
862 protocol = pl[0]; in ppp_input()
865 protocol = (pl[0] << 8) | pl[1]; in ppp_input()
871 switch(protocol) { in ppp_input()
925 if (protp->protocol == protocol) { in ppp_input()
943 if (protocol == (protp->protocol & ~0x8000) in ppp_input()
953 pname = protocol_name(protocol); in ppp_input()
955 ppp_warn("Unsupported protocol '%s' (0x%x) received", pname, protocol); in ppp_input()
958 ppp_warn("Unsupported protocol 0x%x received", protocol); in ppp_input()
960 pbuf_header(pb, (s16_t)sizeof(protocol)); in ppp_input()