Lines Matching full:protocol
2 * ppp.c - Network Point to Point Protocol program file.
64 * if_ppp.h - Point-to-Point Protocol definitions.
167 * PPP Data Link Layer "protocol" table.
168 * One entry per supported protocol.
212 static err_t ppp_netif_output(struct netif *netif, struct pbuf *pb, u16_t protocol);
345 /* LCP not open, close link protocol */ in ppp_close()
362 /* forced link termination, this will force link protocol to disconnect. */ in ppp_close()
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()
535 protocol = PPP_IP; */ 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()
713 * Initialize each protocol. in ppp_new()
740 /* Start protocol */ in ppp_start()
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()
829 * the protocol is in the range of what should be encrypted. 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()
859 /* Extract and hide protocol (do PFC decompression if necessary) */ 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()
874 case PPP_IP: /* Internet Protocol */ in ppp_input()
881 case PPP_IPV6: /* Internet Protocol Version 6 */ in ppp_input()
922 * Upcall the proper protocol input routine. 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()
1190 * sifdown - Disable the indicated protocol and config the interface
1298 * sif6down - Disable the indicated protocol and config the interface
1447 /* List of protocol names, to make our messages a little more informative. */
1461 { 0x33, "Stream Protocol ST-II" },
1471 { 0x49, "Serial Data Transport Protocol (PPP-SDTP)" },
1480 { 0x5b, "Vendor-Specific Network Protocol" },
1494 { 0x0207, "Cisco Discovery Protocol" },
1496 { 0x020b, "STP - Scheduled Transfer Protocol" },
1497 { 0x020d, "EDP - Extreme Discovery Protocol" },
1498 { 0x0211, "Optical Supervisory Channel Protocol" },
1499 { 0x0213, "Optical Supervisory Channel Protocol" },
1502 { 0x0235, "Apple Client Server Protocol" },
1506 { 0x0287, "ETSI TETRA Network Protocol Type 1" },
1507 { 0x0289, "Multichannel Flow Treatment Protocol" },
1512 { 0x4001, "Cray Communications Control Protocol" },
1513 { 0x4003, "CDPD Mobile Network Registration Protocol" },
1514 { 0x4005, "Expand accelerator protocol" },
1517 { 0x400B, "Cetacean Network Detection Protocol" },
1519 { 0x4023, "RefTek Protocol" },
1522 { 0x405b, "Vendor-Specific Protocol (VSP)" },
1523 { 0x8021, "Internet Protocol Control Protocol" },
1524 { 0x8023, "OSI Network Layer Control Protocol" },
1525 { 0x8025, "Xerox NS IDP Control Protocol" },
1526 { 0x8027, "DECnet Phase IV Control Protocol" },
1527 { 0x8029, "Appletalk Control Protocol" },
1528 { 0x802b, "Novell IPX Control Protocol" },
1530 { 0x8033, "Stream Protocol Control Protocol" },
1531 { 0x8035, "Banyan Vines Control Protocol" },
1532 { 0x803d, "Multi-Link Control Protocol" },
1533 { 0x803f, "NETBIOS Framing Control Protocol" },
1534 { 0x8041, "Cisco Systems Control Protocol" },
1536 { 0x8045, "Fujitsu LBLB Control Protocol" },
1537 { 0x8047, "DCA Remote Lan Network Control Protocol (RLNCP)" },
1538 { 0x8049, "Serial Data Control Protocol (PPP-SDCP)" },
1539 { 0x804b, "SNA over 802.2 Control Protocol" },
1540 { 0x804d, "SNA Control Protocol" },
1541 { 0x804f, "IP6 Header Compression Control Protocol" },
1542 { 0x8051, "KNX Bridging Control Protocol" },
1543 { 0x8053, "Encryption Control Protocol" },
1544 { 0x8055, "Individual Link Encryption Control Protocol" },
1545 { 0x8057, "IPv6 Control Protocol" },
1546 { 0x8059, "PPP Muxing Control Protocol" },
1547 { 0x805b, "Vendor-Specific Network Control Protocol (VSNCP)" },
1548 { 0x806f, "Stampede Bridging Control Protocol" },
1549 { 0x8073, "MP+ Control Protocol" },
1550 { 0x80c1, "NTCITS IPI Control Protocol" },
1551 { 0x80fb, "Single Link Compression Control Protocol" },
1552 { 0x80fd, "Compression Control Protocol" },
1553 { 0x8207, "Cisco Discovery Protocol Control" },
1555 { 0x820b, "STP - Control Protocol" },
1556 { 0x820d, "EDPCP - Extreme Discovery Protocol Ctrl Prtcl" },
1557 { 0x8235, "Apple Client Server Protocol Control" },
1559 { 0x8285, "IEEE p1284.4 standard - Protocol Control" },
1560 { 0x8287, "ETSI TETRA TNP1 Control Protocol" },
1561 { 0x8289, "Multichannel Flow Treatment Protocol" },
1562 { 0xc021, "Link Control Protocol" },
1563 { 0xc023, "Password Authentication Protocol" },
1565 { 0xc027, "Shiva Password Authentication Protocol" },
1566 { 0xc029, "CallBack Control Protocol (CBCP)" },
1567 { 0xc02b, "BACP Bandwidth Allocation Control Protocol" },
1569 { 0xc05b, "Vendor-Specific Authentication Protocol (VSAP)" },
1570 { 0xc081, "Container Control Protocol" },
1571 { 0xc223, "Challenge Handshake Authentication Protocol" },
1572 { 0xc225, "RSA Authentication Protocol" },
1573 { 0xc227, "Extensible Authentication Protocol" },
1575 { 0xc26f, "Stampede Bridging Authorization Protocol" },
1576 { 0xc281, "Proprietary Authentication Protocol" },
1577 { 0xc283, "Proprietary Authentication Protocol" },
1578 { 0xc481, "Proprietary Node ID Authentication Protocol" },
1583 * protocol_name - find a name for a PPP protocol.