Lines Matching refs:proto
50 proto_WrapperOctets(struct lcp *lcp, u_short proto) in proto_WrapperOctets() argument
52 return (lcp->his_protocomp && !(proto & 0xff00)) ? 1 : 2; in proto_WrapperOctets()
56 proto_Prepend(struct mbuf *bp, u_short proto, unsigned comp, int extra) in proto_Prepend() argument
60 cp[0] = proto >> 8; in proto_Prepend()
61 cp[1] = proto & 0xff; in proto_Prepend()
73 int pri __unused, u_short *proto) in proto_LayerPush() argument
75 log_Printf(LogDEBUG, "proto_LayerPush: Using 0x%04x\n", *proto); in proto_LayerPush()
76 bp = proto_Prepend(bp, *proto, l->lcp.his_protocomp, in proto_LayerPush()
77 acf_WrapperOctets(&l->lcp, *proto)); in proto_LayerPush()
79 link_ProtocolRecord(l, *proto, PROTO_OUT); in proto_LayerPush()
86 u_short *proto) in proto_LayerPull() argument
96 *proto = cp[0]; in proto_LayerPull()
97 if (!(*proto & 1)) { in proto_LayerPull()
103 *proto = (*proto << 8) | cp[1]; in proto_LayerPull()
107 log_Printf(LogDEBUG, "proto_LayerPull: unknown -> 0x%04x\n", *proto); in proto_LayerPull()
109 link_ProtocolRecord(l, *proto, PROTO_IN); in proto_LayerPull()