Lines Matching refs:cp
54 of_header_body_print(const u_char *cp, const u_char *ep) {
59 if (ep < cp + OF_HEADER_LEN)
62 TCHECK2(*cp, 1);
63 version = *cp;
64 cp += 1;
66 TCHECK2(*cp, 1);
67 type = *cp;
68 cp += 1;
70 TCHECK2(*cp, 2);
71 length = EXTRACT_16BITS(cp);
72 cp += 2;
74 TCHECK2(*cp, 4);
75 xid = EXTRACT_32BITS(cp);
76 cp += 4;
90 return of10_header_body_print(cp, ep, type, length, xid);
93 TCHECK2(*cp, length - OF_HEADER_LEN);
94 return cp + length - OF_HEADER_LEN; /* done with current message */
99 TCHECK2(*cp, ep - cp);
109 openflow_print(const u_char *cp, const u_int len) {
110 const u_char *ep = cp + len;
113 while (cp < ep)
114 cp = of_header_body_print(cp, ep);