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);
357 /* LCP not open, close link protocol */
374 /* forced link termination, this will force link protocol to disconnect. */
507 static err_t ppp_netif_output(struct netif *netif, struct pbuf *pb, u16_t protocol) {
515 || (protocol == PPP_IP && !pcb->if4_up)
518 || (protocol == PPP_IPV6 && !pcb->if6_up)
538 if (protocol == PPP_IP && pcb->vj_enabled) {
542 protocol = PPP_IP; */
548 protocol = PPP_VJC_COMP;
554 protocol = PPP_VJC_UNCOMP;
572 if ((err = mppe_compress(pcb, &pcb->mppe_comp, &pb, protocol)) != ERR_OK) {
585 protocol = PPP_COMP;
594 err = pcb->link_cb->netif_output(pcb, pcb->link_ctx_cb, pb, protocol);
720 * Initialize each protocol.
747 /* Start protocol */
777 u16_t protocol;
788 protocol = (((u8_t *)pb->payload)[0] << 8) | ((u8_t*)pb->payload)[1];
794 pbuf_remove_header(pb, sizeof(protocol));
803 if (protocol != PPP_LCP && pcb->lcp_fsm.state != PPP_FSM_OPENED) {
813 && !(protocol == PPP_LCP
815 || protocol == PPP_LQR
818 || protocol == PPP_PAP
821 || protocol == PPP_CHAP
824 || protocol == PPP_EAP
827 ppp_dbglog("discarding proto 0x%x in phase %d", protocol, pcb->phase);
836 * the protocol is in the range of what should be encrypted.
839 if (pcb->settings.require_mppe && protocol != PPP_COMP && protocol < 0x8000) {
845 if (protocol == PPP_COMP) {
866 /* Extract and hide protocol (do PFC decompression if necessary) */
869 protocol = pl[0];
872 protocol = (pl[0] << 8) | pl[1];
878 switch(protocol) {
929 * Upcall the proper protocol input routine.
932 if (protp->protocol == protocol) {
950 if (protocol == (protp->protocol & ~0x8000)
960 pname = protocol_name(protocol);
962 ppp_warn("Unsupported protocol '%s' (0x%x) received", pname, protocol);
965 ppp_warn("Unsupported protocol 0x%x received", protocol);
967 if (pbuf_add_header(pb, sizeof(protocol))) {
1174 * sifdown - Disable the indicated protocol and config the interface
1282 * sif6down - Disable the indicated protocol and config the interface
1431 /* List of protocol names, to make our messages a little more informative. */
1498 { 0x4005, "Expand accelerator protocol" },
1567 * protocol_name - find a name for a PPP protocol.