Home | History | Annotate | Download | only in src

Lines Matching refs:proto

26  * $FreeBSD: src/usr.sbin/ppp/proto.c,v 1.7.26.1 2010/12/21 17:10:29 kensmith Exp $
41 #include "proto.h"
50 proto_WrapperOctets(struct lcp *lcp, u_short proto)
52 return (lcp->his_protocomp && !(proto & 0xff00)) ? 1 : 2;
56 proto_Prepend(struct mbuf *bp, u_short proto, unsigned comp, int extra)
60 cp[0] = proto >> 8;
61 cp[1] = proto & 0xff;
73 int pri __unused, u_short *proto)
75 log_Printf(LogDEBUG, "proto_LayerPush: Using 0x%04x\n", *proto);
76 bp = proto_Prepend(bp, *proto, l->lcp.his_protocomp,
77 acf_WrapperOctets(&l->lcp, *proto));
79 link_ProtocolRecord(l, *proto, PROTO_OUT);
86 u_short *proto)
96 *proto = cp[0];
97 if (!(*proto & 1)) {
103 *proto = (*proto << 8) | cp[1];
107 log_Printf(LogDEBUG, "proto_LayerPull: unknown -> 0x%04x\n", *proto);
109 link_ProtocolRecord(l, *proto, PROTO_IN);
115 { LAYER_PROTO, "proto", proto_LayerPush, proto_LayerPull };