Lines Matching defs:protocol

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 */
362 /* forced link termination, this will force link protocol to disconnect. */
500 static err_t ppp_netif_output(struct netif *netif, struct pbuf *pb, u16_t protocol) {
508 || (protocol == PPP_IP && !pcb->if4_up)
511 || (protocol == PPP_IPV6 && !pcb->if6_up)
531 if (protocol == PPP_IP && pcb->vj_enabled) {
535 protocol = PPP_IP; */
541 protocol = PPP_VJC_COMP;
547 protocol = PPP_VJC_UNCOMP;
565 if ((err = mppe_compress(pcb, &pcb->mppe_comp, &pb, protocol)) != ERR_OK) {
578 protocol = PPP_COMP;
587 err = pcb->link_cb->netif_output(pcb, pcb->link_ctx_cb, pb, protocol);
713 * Initialize each protocol.
740 /* Start protocol */
770 u16_t protocol;
781 protocol = (((u8_t *)pb->payload)[0] << 8) | ((u8_t*)pb->payload)[1];
787 pbuf_header(pb, -(s16_t)sizeof(protocol));
796 if (protocol != PPP_LCP && pcb->lcp_fsm.state != PPP_FSM_OPENED) {
806 && !(protocol == PPP_LCP
808 || protocol == PPP_LQR
811 || protocol == PPP_PAP
814 || protocol == PPP_CHAP
817 || protocol == PPP_EAP
820 ppp_dbglog("discarding proto 0x%x in phase %d", protocol, pcb->phase);
829 * the protocol is in the range of what should be encrypted.
832 if (pcb->settings.require_mppe && protocol != PPP_COMP && protocol < 0x8000) {
838 if (protocol == PPP_COMP) {
859 /* Extract and hide protocol (do PFC decompression if necessary) */
862 protocol = pl[0];
865 protocol = (pl[0] << 8) | pl[1];
871 switch(protocol) {
922 * Upcall the proper protocol input routine.
925 if (protp->protocol == protocol) {
943 if (protocol == (protp->protocol & ~0x8000)
953 pname = protocol_name(protocol);
955 ppp_warn("Unsupported protocol '%s' (0x%x) received", pname, protocol);
958 ppp_warn("Unsupported protocol 0x%x received", protocol);
960 pbuf_header(pb, (s16_t)sizeof(protocol));
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. */
1514 { 0x4005, "Expand accelerator protocol" },
1583 * protocol_name - find a name for a PPP protocol.