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);
354 /* LCP not open, close link protocol */ in ppp_close()
371 /* forced link termination, this will force link protocol to disconnect. */ in ppp_close()
504 static err_t ppp_netif_output(struct netif *netif, struct pbuf *pb, u16_t protocol) { in ppp_netif_output() argument
512 || (protocol == PPP_IP && !pcb->if4_up) in ppp_netif_output()
515 || (protocol == PPP_IPV6 && !pcb->if6_up) in ppp_netif_output()
535 if (protocol == PPP_IP && pcb->vj_enabled) { in ppp_netif_output()
539 protocol = PPP_IP; */ in ppp_netif_output()
545 protocol = PPP_VJC_COMP; in ppp_netif_output()
551 protocol = PPP_VJC_UNCOMP; in ppp_netif_output()
569 if ((err = mppe_compress(pcb, &pcb->mppe_comp, &pb, protocol)) != ERR_OK) { in ppp_netif_output()
582 protocol = PPP_COMP; in ppp_netif_output()
591 err = pcb->link_cb->netif_output(pcb, pcb->link_ctx_cb, pb, protocol); in ppp_netif_output()
717 * Initialize each protocol. in ppp_new()
744 /* Start protocol */ in ppp_start()
774 u16_t protocol; in ppp_input() local
785 protocol = (((u8_t *)pb->payload)[0] << 8) | ((u8_t*)pb->payload)[1]; in ppp_input()
791 pbuf_remove_header(pb, sizeof(protocol)); in ppp_input()
800 if (protocol != PPP_LCP && pcb->lcp_fsm.state != PPP_FSM_OPENED) { in ppp_input()
810 && !(protocol == PPP_LCP in ppp_input()
812 || protocol == PPP_LQR in ppp_input()
815 || protocol == PPP_PAP in ppp_input()
818 || protocol == PPP_CHAP in ppp_input()
821 || protocol == PPP_EAP in ppp_input()
824 ppp_dbglog("discarding proto 0x%x in phase %d", protocol, pcb->phase); in ppp_input()
833 * the protocol is in the range of what should be encrypted. in ppp_input()
836 if (pcb->settings.require_mppe && protocol != PPP_COMP && protocol < 0x8000) { in ppp_input()
842 if (protocol == PPP_COMP) { in ppp_input()
863 /* Extract and hide protocol (do PFC decompression if necessary) */ in ppp_input()
866 protocol = pl[0]; in ppp_input()
869 protocol = (pl[0] << 8) | pl[1]; in ppp_input()
875 switch(protocol) { in ppp_input()
878 case PPP_IP: /* Internet Protocol */ in ppp_input()
885 case PPP_IPV6: /* Internet Protocol Version 6 */ in ppp_input()
926 * Upcall the proper protocol input routine. in ppp_input()
929 if (protp->protocol == protocol) { in ppp_input()
947 if (protocol == (protp->protocol & ~0x8000) in ppp_input()
957 pname = protocol_name(protocol); in ppp_input()
959 ppp_warn("Unsupported protocol '%s' (0x%x) received", pname, protocol); in ppp_input()
962 ppp_warn("Unsupported protocol 0x%x received", protocol); in ppp_input()
964 if (pbuf_add_header(pb, sizeof(protocol))) { in ppp_input()
1171 * sifdown - Disable the indicated protocol and config the interface
1279 * sif6down - Disable the indicated protocol and config the interface
1428 /* List of protocol names, to make our messages a little more informative. */
1442 { 0x33, "Stream Protocol ST-II" },
1452 { 0x49, "Serial Data Transport Protocol (PPP-SDTP)" },
1461 { 0x5b, "Vendor-Specific Network Protocol" },
1475 { 0x0207, "Cisco Discovery Protocol" },
1477 { 0x020b, "STP - Scheduled Transfer Protocol" },
1478 { 0x020d, "EDP - Extreme Discovery Protocol" },
1479 { 0x0211, "Optical Supervisory Channel Protocol" },
1480 { 0x0213, "Optical Supervisory Channel Protocol" },
1483 { 0x0235, "Apple Client Server Protocol" },
1487 { 0x0287, "ETSI TETRA Network Protocol Type 1" },
1488 { 0x0289, "Multichannel Flow Treatment Protocol" },
1493 { 0x4001, "Cray Communications Control Protocol" },
1494 { 0x4003, "CDPD Mobile Network Registration Protocol" },
1495 { 0x4005, "Expand accelerator protocol" },
1498 { 0x400B, "Cetacean Network Detection Protocol" },
1500 { 0x4023, "RefTek Protocol" },
1503 { 0x405b, "Vendor-Specific Protocol (VSP)" },
1504 { 0x8021, "Internet Protocol Control Protocol" },
1505 { 0x8023, "OSI Network Layer Control Protocol" },
1506 { 0x8025, "Xerox NS IDP Control Protocol" },
1507 { 0x8027, "DECnet Phase IV Control Protocol" },
1508 { 0x8029, "Appletalk Control Protocol" },
1509 { 0x802b, "Novell IPX Control Protocol" },
1511 { 0x8033, "Stream Protocol Control Protocol" },
1512 { 0x8035, "Banyan Vines Control Protocol" },
1513 { 0x803d, "Multi-Link Control Protocol" },
1514 { 0x803f, "NETBIOS Framing Control Protocol" },
1515 { 0x8041, "Cisco Systems Control Protocol" },
1517 { 0x8045, "Fujitsu LBLB Control Protocol" },
1518 { 0x8047, "DCA Remote Lan Network Control Protocol (RLNCP)" },
1519 { 0x8049, "Serial Data Control Protocol (PPP-SDCP)" },
1520 { 0x804b, "SNA over 802.2 Control Protocol" },
1521 { 0x804d, "SNA Control Protocol" },
1522 { 0x804f, "IP6 Header Compression Control Protocol" },
1523 { 0x8051, "KNX Bridging Control Protocol" },
1524 { 0x8053, "Encryption Control Protocol" },
1525 { 0x8055, "Individual Link Encryption Control Protocol" },
1526 { 0x8057, "IPv6 Control Protocol" },
1527 { 0x8059, "PPP Muxing Control Protocol" },
1528 { 0x805b, "Vendor-Specific Network Control Protocol (VSNCP)" },
1529 { 0x806f, "Stampede Bridging Control Protocol" },
1530 { 0x8073, "MP+ Control Protocol" },
1531 { 0x80c1, "NTCITS IPI Control Protocol" },
1532 { 0x80fb, "Single Link Compression Control Protocol" },
1533 { 0x80fd, "Compression Control Protocol" },
1534 { 0x8207, "Cisco Discovery Protocol Control" },
1536 { 0x820b, "STP - Control Protocol" },
1537 { 0x820d, "EDPCP - Extreme Discovery Protocol Ctrl Prtcl" },
1538 { 0x8235, "Apple Client Server Protocol Control" },
1540 { 0x8285, "IEEE p1284.4 standard - Protocol Control" },
1541 { 0x8287, "ETSI TETRA TNP1 Control Protocol" },
1542 { 0x8289, "Multichannel Flow Treatment Protocol" },
1543 { 0xc021, "Link Control Protocol" },
1544 { 0xc023, "Password Authentication Protocol" },
1546 { 0xc027, "Shiva Password Authentication Protocol" },
1547 { 0xc029, "CallBack Control Protocol (CBCP)" },
1548 { 0xc02b, "BACP Bandwidth Allocation Control Protocol" },
1550 { 0xc05b, "Vendor-Specific Authentication Protocol (VSAP)" },
1551 { 0xc081, "Container Control Protocol" },
1552 { 0xc223, "Challenge Handshake Authentication Protocol" },
1553 { 0xc225, "RSA Authentication Protocol" },
1554 { 0xc227, "Extensible Authentication Protocol" },
1556 { 0xc26f, "Stampede Bridging Authorization Protocol" },
1557 { 0xc281, "Proprietary Authentication Protocol" },
1558 { 0xc283, "Proprietary Authentication Protocol" },
1559 { 0xc481, "Proprietary Node ID Authentication Protocol" },
1564 * protocol_name - find a name for a PPP protocol.