Home | History | Annotate | Download | only in net

Lines Matching defs:find

431 /* Find a fingerprint in the list */
433 pf_osfp_find(struct pf_osfp_list *list, struct pf_os_fingerprint *find,
441 if (f->_field != find->_field) \
444 if (f->_field == 0 || find->_field % f->_field) \
450 if (f->fp_tcpopts != find->fp_tcpopts ||
451 f->fp_optcnt != find->fp_optcnt ||
452 f->fp_ttl < find->fp_ttl ||
453 f->fp_ttl - find->fp_ttl > ttldiff ||
455 (find->fp_flags & (PF_OSFP_DF|PF_OSFP_TS0)))
463 if (find->fp_mss == 0)
470 if ((find->fp_wsize % find->fp_mss ||
471 find->fp_wsize / find->fp_mss !=
473 (find->fp_wsize % SMART_MSS ||
474 find->fp_wsize / SMART_MSS !=
478 if (find->fp_mss == 0)
483 if ((find->fp_wsize % (find->fp_mss + MTUOFF) ||
484 find->fp_wsize / (find->fp_mss + MTUOFF) !=
486 (find->fp_wsize % SMART_MTU ||
487 find->fp_wsize / SMART_MTU !=
491 if (f->fp_wsize == 0 || find->fp_wsize %
495 if (f->fp_wsize != find->fp_wsize)
505 /* Find an exact fingerprint in the list */
507 pf_osfp_find_exact(struct pf_osfp_list *list, struct pf_os_fingerprint *find)
512 if (f->fp_tcpopts == find->fp_tcpopts &&
513 f->fp_wsize == find->fp_wsize &&
514 f->fp_psize == find->fp_psize &&
515 f->fp_mss == find->fp_mss &&
516 f->fp_flags == find->fp_flags &&
517 f->fp_optcnt == find->fp_optcnt &&
518 f->fp_wscale == find->fp_wscale &&
519 f->fp_ttl == find->fp_ttl)
578 struct pf_os_fingerprint *f, *f2, find;
581 memcpy(&find, f, sizeof(find));
584 if (find.fp_mss == 0)
585 find.fp_mss = 128;
587 find.fp_wsize *= find.fp_mss;
589 find.fp_wsize *= (find.fp_mss + 40);
591 find.fp_wsize *= 2;
592 if (f != (f2 = pf_osfp_find(&pf_osfp_list, &find, 0))) {
603 printf("Couldn't find \"%s %s %s\"\n",