Lines Matching refs:cmp
50 static int mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp);
53 int max, char *cmp);
105 mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp) in mbufstrcmp() argument
114 for (; offset < m->m_len; offset++, cmp++) { in mbufstrcmp()
115 if (*cmp == '\0') in mbufstrcmp()
117 else if (*cmp != *(mtod(m, char *) + offset)) in mbufstrcmp()
120 if (*cmp == '\0') in mbufstrcmp()
134 mbufstrncmp(struct mbuf *m, struct mbuf *npkt, int offset, int max, char *cmp) in mbufstrncmp() argument
143 for (; offset < m->m_len; offset++, cmp++, max--) { in mbufstrncmp()
144 if (max == 0 || *cmp == '\0') in mbufstrncmp()
146 else if (*cmp != *(mtod(m, char *) + offset)) in mbufstrncmp()
149 if (max == 0 || *cmp == '\0') in mbufstrncmp()
170 char *cmp; in sohashttpget() local
179 STRSETUP(cmp, cmplen, "ET "); in sohashttpget()
182 STRSETUP(cmp, cmplen, "EAD "); in sohashttpget()
188 if (mbufstrncmp(m, m->m_nextpkt, 1, cc, cmp) == 1) { in sohashttpget()
196 if (mbufstrcmp(m, m->m_nextpkt, 1, cmp) == 1) { in sohashttpget()