Lines Matching refs:proto
409 static void handle_ctrl_proto (u_int proto,const u_char *p, int length);
419 static void handle_ppp (u_int proto, const u_char *p, int length);
424 handle_ctrl_proto(u_int proto, const u_char *pptr, int length)
434 typestr = tok2str(ppptype2str, "unknown ctrl-proto (0x%04x)", proto);
484 switch (proto) {
647 printf("%s", tok2str(ppptype2str,"Unknown Auth Proto (0x04x)",EXTRACT_16BITS(p+2)));
1270 int i, proto;
1298 proto = *b; /* start with a one-octet codepoint guess */
1300 switch (proto) {
1313 proto = EXTRACT_16BITS(b); /* next guess - load two octets */
1315 switch (proto) {
1317 proto = EXTRACT_16BITS(b+2); /* load the PPP proto-id */
1318 handle_ppp(proto, b+4, t - b - 4);
1320 default: /* last guess - proto must be a PPP proto-id */
1321 handle_ppp(proto, b+2, t - b - 2);
1334 handle_ppp(u_int proto, const u_char *p, int length)
1336 if ((proto & 0xff00) == 0x7e00) {/* is this an escape code ? */
1341 switch (proto) {
1349 handle_ctrl_proto(proto, p, length);
1389 printf("%s ", tok2str(ppptype2str, "unknown PPP protocol (0x%04x)", proto));
1399 u_int proto,ppp_header;
1439 proto = *p; /* PFC is used */
1445 proto = EXTRACT_16BITS(p);
1453 tok2str(ppptype2str, "unknown", proto),
1454 proto,
1457 handle_ppp(proto, p, length);
1537 u_int proto;
1559 proto = EXTRACT_16BITS(p);
1563 printf("%s: ", tok2str(ppptype2str, "unknown PPP protocol (0x%04x)", proto));
1565 handle_ppp(proto, p, length);
1655 "proto-#%d", ptype));