Lines Matching refs:cmp
50 static int mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp);
53 int max, char *cmp);
93 mbufstrcmp(struct mbuf *m, struct mbuf *npkt, int offset, char *cmp) in mbufstrcmp() argument
102 for (; offset < m->m_len; offset++, cmp++) { in mbufstrcmp()
103 if (*cmp == '\0') in mbufstrcmp()
105 else if (*cmp != *(mtod(m, char *) + offset)) in mbufstrcmp()
108 if (*cmp == '\0') in mbufstrcmp()
122 mbufstrncmp(struct mbuf *m, struct mbuf *npkt, int offset, int max, char *cmp) in mbufstrncmp() argument
131 for (; offset < m->m_len; offset++, cmp++, max--) { in mbufstrncmp()
132 if (max == 0 || *cmp == '\0') in mbufstrncmp()
134 else if (*cmp != *(mtod(m, char *) + offset)) in mbufstrncmp()
137 if (max == 0 || *cmp == '\0') in mbufstrncmp()
158 char *cmp; in sohashttpget() local
167 STRSETUP(cmp, cmplen, "ET "); in sohashttpget()
170 STRSETUP(cmp, cmplen, "EAD "); in sohashttpget()
176 if (mbufstrncmp(m, m->m_nextpkt, 1, cc, cmp) == 1) { in sohashttpget()
184 if (mbufstrcmp(m, m->m_nextpkt, 1, cmp) == 1) { in sohashttpget()