Lines Matching full:protocol
2 * ppp.c - Network Point to Point Protocol program file.
64 * if_ppp.h - Point-to-Point Protocol definitions.
153 PDPROTOCOL1, /* Process protocol field 1. */
154 PDPROTOCOL2, /* Process protocol field 2. */
183 u16_t inProtocol; /* The input protocol code. */
207 int pcomp; /* Does peer accept protocol compression? */
231 int protocol; /* PPP procotol, e.g. PPP_IP */ member
258 * PPP Data Link Layer "protocol" table.
259 * One entry per supported protocol.
410 lcp_open(pd); /* Start protocol */ in pppStart()
453 /* Initialize each protocol to the standard option set. */ in pppInit()
770 u_short protocol = PPP_IP; in pppifOutputOverEthernet() local
775 pb = pbuf_alloc(PBUF_LINK, PPPOE_HDRLEN + sizeof(protocol), PBUF_RAM); in pppifOutputOverEthernet()
787 if (!pc->pcomp || protocol > 0xFF) { in pppifOutputOverEthernet()
788 *((u_char*)pb->payload + i++) = (protocol >> 8) & 0xFF; in pppifOutputOverEthernet()
790 *((u_char*)pb->payload + i) = protocol & 0xFF; in pppifOutputOverEthernet()
815 u_short protocol = PPP_IP; in pppifOutput() local
824 /* We let any protocol value go through - it can't hurt us in pppifOutput()
866 if (protocol == PPP_IP && pc->vjEnabled) { in pppifOutput()
870 protocol = PPP_IP_PROTOCOL; */ in pppifOutput()
873 protocol = PPP_VJC_COMP; in pppifOutput()
876 protocol = PPP_VJC_UNCOMP; in pppifOutput()
903 if (!pc->pcomp || protocol > 0xFF) { in pppifOutput()
904 c = (protocol >> 8) & 0xFF; in pppifOutput()
908 c = protocol & 0xFF; in pppifOutput()
941 pd, protocol)); in pppifOutput()
950 PPPDEBUG(LOG_INFO, ("pppifOutput[%d]: proto=0x%"X16_F"\n", pd, protocol)); in pppifOutput()
1516 * to section 4 of RFC 1661: The Point-To-Point Protocol. */
1606 u16_t protocol; in pppInput() local
1610 protocol = ((struct pppInputHeader *)nb->payload)->proto; in pppInput()
1626 if((lcp_phase[pd] <= PHASE_AUTHENTICATE) && (protocol != PPP_LCP)) { in pppInput()
1627 if(!((protocol == PPP_LQR) || (protocol == PPP_PAP) || (protocol == PPP_CHAP)) || in pppInput()
1629 …PPPDEBUG(LOG_INFO, ("pppInput: discarding proto 0x%"X16_F" in phase %d\n", protocol, lcp_phase[pd]… in pppInput()
1634 switch(protocol) { in pppInput()
1649 /* No handler for this protocol so drop the packet. */ in pppInput()
1668 /* No handler for this protocol so drop the packet. */ in pppInput()
1675 case PPP_IP: /* Internet Protocol */ in pppInput()
1688 * Upcall the proper protocol input routine. in pppInput()
1691 if (protp->protocol == protocol && protp->enabled_flag) { in pppInput()
1700 /* No handler for this protocol so reject the packet. */ in pppInput()
1701 …OG_INFO, ("pppInput[%d]: rejecting unsupported proto 0x%"X16_F" len=%d\n", pd, protocol, nb->len)); in pppInput()
1702 if (pbuf_header(nb, sizeof(protocol))) { in pppInput()
1707 protocol = htons(protocol); in pppInput()
1709 SMEMCPY(nb->payload, &protocol, sizeof(protocol)); in pppInput()
1900 * fall through to get the protocol... */ in pppInProc()
1914 case PDPROTOCOL1: /* Process protocol field 1. */ in pppInProc()
1915 /* If the lower bit is set, this is the end of the protocol in pppInProc()
1925 case PDPROTOCOL2: /* Process protocol field 2. */ in pppInProc()
1986 PPPDEBUG(LOG_ERR, ("pppInProcOverEthernet: too small for protocol field\n")); in pppInProcOverEthernet()