Lines Matching defs:protocol
5 * Keepalive protocol implemented in both Cisco and PPP modes.
123 #define SPPP_PROTO_NAMELEN 7 /* buf size of protocol name */
157 #define PROTO_REJ 8 /* PPP protocol reject */
164 #define LCP_OPT_AUTH_PROTO 3 /* authentication protocol */
165 #define LCP_OPT_QUAL_PROTO 4 /* quality protocol */
168 #define LCP_OPT_PROTO_COMP 7 /* protocol field compression */
179 #define IPCP_OPT_COMPRESSION 2 /* IP compression protocol */
189 #define IPV6CP_OPT_COMPRESSION 2 /* IPv6 compression protocol */
204 #define CISCO_KEEPALIVE 0x8035 /* Cisco keepalive protocol */
209 #define PPP_NOPROTO 0 /* no authentication protocol */
236 uint16_t protocol;
264 u_short proto; /* PPP control protocol number */
268 #define CP_AUTH 0x02 /* this is an authentication protocol */
270 #define CP_QUAL 0x08 /* this is a quality reporting protocol */
271 const char *name; /* name of this control protocol */
498 /* our control protocol descriptors */
640 uint16_t protocol;
663 memcpy(&protocol, mtod(m, void *), 2);
664 protocol = ntohs(protocol);
682 h->address, h->control, ntohs(h->protocol));
688 h->address, h->control, ntohs(h->protocol));
691 protocol = ntohs(h->protocol);
694 switch (protocol) {
697 uint16_t prot = htons(protocol);
708 SPPP_DLOG(sp, "invalid input protocol "
709 "<proto=0x%x>\n", protocol);
811 uint16_t protocol;
942 case AF_INET: /* Internet Protocol */
952 protocol = htons(PPP_IP);
969 case AF_INET6: /* Internet Protocol version 6 */
979 protocol = htons(PPP_IPV6);
1012 *mtod(m, uint16_t *) = protocol;
1014 h->protocol = protocol;
1198 * Process only the control protocol queue until we have at
1374 * PPP protocol implementation.
1378 * Send PPP control protocol packet.
1411 h->protocol = htons(proto); /* Link Control Protocol */
1554 * Handle incoming PPP control protocol packets.
1689 * this particular protocol type. terminate the protocol.
2369 * Change the state of a control protocol in the state automaton.
5294 h->protocol = htons(cp->proto);