Lines Matching refs:protocol

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 */
258 * PPP Data Link Layer "protocol" table.
259 * One entry per supported protocol.
410 lcp_open(pd); /* Start protocol */
453 /* Initialize each protocol to the standard option set. */
770 u_short protocol = PPP_IP;
775 pb = pbuf_alloc(PBUF_LINK, PPPOE_HDRLEN + sizeof(protocol), PBUF_RAM);
787 if (!pc->pcomp || protocol > 0xFF) {
788 *((u_char*)pb->payload + i++) = (protocol >> 8) & 0xFF;
790 *((u_char*)pb->payload + i) = protocol & 0xFF;
815 u_short protocol = PPP_IP;
824 /* We let any protocol value go through - it can't hurt us
866 if (protocol == PPP_IP && pc->vjEnabled) {
870 protocol = PPP_IP_PROTOCOL; */
873 protocol = PPP_VJC_COMP;
876 protocol = PPP_VJC_UNCOMP;
903 if (!pc->pcomp || protocol > 0xFF) {
904 c = (protocol >> 8) & 0xFF;
908 c = protocol & 0xFF;
941 pd, protocol));
950 PPPDEBUG(LOG_INFO, ("pppifOutput[%d]: proto=0x%"X16_F"\n", pd, protocol));
1606 u16_t protocol;
1610 protocol = ((struct pppInputHeader *)nb->payload)->proto;
1626 if((lcp_phase[pd] <= PHASE_AUTHENTICATE) && (protocol != PPP_LCP)) {
1627 if(!((protocol == PPP_LQR) || (protocol == PPP_PAP) || (protocol == PPP_CHAP)) ||
1629 PPPDEBUG(LOG_INFO, ("pppInput: discarding proto 0x%"X16_F" in phase %d\n", protocol, lcp_phase[pd]));
1634 switch(protocol) {
1649 /* No handler for this protocol so drop the packet. */
1668 /* No handler for this protocol so drop the packet. */
1688 * Upcall the proper protocol input routine.
1691 if (protp->protocol == protocol && protp->enabled_flag) {
1700 /* No handler for this protocol so reject the packet. */
1701 PPPDEBUG(LOG_INFO, ("pppInput[%d]: rejecting unsupported proto 0x%"X16_F" len=%d\n", pd, protocol, nb->len));
1702 if (pbuf_header(nb, sizeof(protocol))) {
1707 protocol = htons(protocol);
1709 SMEMCPY(nb->payload, &protocol, sizeof(protocol));
1900 * fall through to get the protocol... */
1914 case PDPROTOCOL1: /* Process protocol field 1. */
1915 /* If the lower bit is set, this is the end of the protocol
1925 case PDPROTOCOL2: /* Process protocol field 2. */
1986 PPPDEBUG(LOG_ERR, ("pppInProcOverEthernet: too small for protocol field\n"));