Lines Matching defs:mon
2397 mru *mon;
2403 for (mon = hash_table[hash]; mon != NULL; mon = mon->hlink)
2404 if (SOCK_EQ(&mon->addr, &add->addr))
2406 if (mon != NULL) {
2407 if (!L_ISGEQ(&add->first, &mon->first)) {
2411 add->last.l_uf, mon->last.l_ui,
2412 mon->last.l_uf);
2415 UNLINK_DLIST(mon, mlink);
2416 UNLINK_SLIST(unlinked, hash_table[hash], mon, hlink, mru);
2417 INSIST(unlinked == mon);
2419 TRACE(2, ("(updated from %08x.%08x) ", mon->last.l_ui,
2420 mon->last.l_uf));
2429 if (NULL == mon) {
2430 mon = emalloc(sizeof(*mon));
2433 ZERO(*mon);
2435 return mon;
2445 mon = add_mru(mon); \
2471 mru *mon;
2522 cb = sizeof(*mon);
2523 mon = emalloc_zero(cb);
2685 else if (decodenetnum(val, &mon->addr))
2732 !hextolfp(val + 2, &mon->last)) {
2742 *pnow = mon->last;
2750 !hextolfp(val + 2, &mon->first))
2771 1 != sscanf(val, "%d", &mon->count)
2772 || mon->count < 1)
2782 mon->mode = PKT_MODE(mv);
2783 mon->ver = PKT_VERSION(mv);
2790 1 != sscanf(val, "0x%hx", &mon->rs))
2905 if (mon != NULL)
2906 free(mon);