Lines Matching refs:cmp
48 static int mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp);
51 int max, char *cmp);
91 mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp) in mbufstrcmp() argument
100 for (; offset < m->m_len; offset++, cmp++) { in mbufstrcmp()
101 if (*cmp == '\0') in mbufstrcmp()
103 else if (*cmp != *(mtod(m, char *) + offset)) in mbufstrcmp()
106 if (*cmp == '\0') in mbufstrcmp()
120 mbufstrncmp(struct mbuf *m, struct mbuf *npkt, int offset, int max, char *cmp) in mbufstrncmp() argument
129 for (; offset < m->m_len; offset++, cmp++, max--) { in mbufstrncmp()
130 if (max == 0 || *cmp == '\0') in mbufstrncmp()
132 else if (*cmp != *(mtod(m, char *) + offset)) in mbufstrncmp()
135 if (max == 0 || *cmp == '\0') in mbufstrncmp()
156 char *cmp; in sohashttpget() local
165 STRSETUP(cmp, cmplen, "ET "); in sohashttpget()
168 STRSETUP(cmp, cmplen, "EAD "); in sohashttpget()
174 if (mbufstrncmp(m, m->m_nextpkt, 1, cc, cmp) == 1) { in sohashttpget()
182 if (mbufstrcmp(m, m->m_nextpkt, 1, cmp) == 1) { in sohashttpget()