Lines Matching refs:cp
79 of_header_body_print(netdissect_options *ndo, const u_char *cp, const u_char *ep) in of_header_body_print() argument
85 if (ep < cp + OF_HEADER_LEN) in of_header_body_print()
88 ND_TCHECK2(*cp, 1); in of_header_body_print()
89 version = *cp; in of_header_body_print()
90 cp += 1; in of_header_body_print()
92 ND_TCHECK2(*cp, 1); in of_header_body_print()
93 type = *cp; in of_header_body_print()
94 cp += 1; in of_header_body_print()
96 ND_TCHECK2(*cp, 2); in of_header_body_print()
97 length = EXTRACT_16BITS(cp); in of_header_body_print()
98 cp += 2; in of_header_body_print()
100 ND_TCHECK2(*cp, 4); in of_header_body_print()
101 xid = EXTRACT_32BITS(cp); in of_header_body_print()
102 cp += 4; in of_header_body_print()
116 return of10_header_body_print(ndo, cp, ep, type, length, xid); in of_header_body_print()
119 ND_TCHECK2(*cp, length - OF_HEADER_LEN); in of_header_body_print()
120 return cp + length - OF_HEADER_LEN; /* done with current message */ in of_header_body_print()
125 ND_TCHECK2(*cp, ep - cp); in of_header_body_print()
135 openflow_print(netdissect_options *ndo, const u_char *cp, const u_int len) in openflow_print() argument
137 const u_char *ep = cp + len; in openflow_print()
140 while (cp < ep) in openflow_print()
141 cp = of_header_body_print(ndo, cp, ep); in openflow_print()