• Home
  • Raw
  • Download

Lines Matching refs:dbdat

301 	DBT dbkey, dbdat;  in do_one_request()  local
338 if (dbase->get(dbase, &dbkey, &dbdat, 0) != 0) { in do_one_request()
339 dbdat.data = 0; in do_one_request()
340 dbdat.size = 0; in do_one_request()
359 if (dbdat.data && !IS_NEG(dbdat.data)) in do_one_request()
367 if (dbdat.data && !IS_NEG(dbdat.data)) { in do_one_request()
369 respond_to_kernel(key.iface, key.addr, dbdat.data, dbdat.size); in do_one_request()
375 if (dbdat.data && NEG_VALID(dbdat.data)) { in do_one_request()
376 if (NEG_CNT(dbdat.data) >= active_probing) { in do_one_request()
387 NEG_CNT(dbdat.data)++; in do_one_request()
388 dbase->put(dbase, &dbkey, &dbdat, 0); in do_one_request()
398 if (!dbdat.data || in do_one_request()
399 !IS_NEG(dbdat.data) || in do_one_request()
400 !NEG_VALID(dbdat.data)) { in do_one_request()
405 dbdat.data = ndata; in do_one_request()
406 dbdat.size = sizeof(ndata); in do_one_request()
407 dbase->put(dbase, &dbkey, &dbdat, 0); in do_one_request()
410 if (dbdat.data && !IS_NEG(dbdat.data)) { in do_one_request()
411 if (memcmp(RTA_DATA(tb[NDA_LLADDR]), dbdat.data, dbdat.size) == 0) in do_one_request()
417 dbdat.data = RTA_DATA(tb[NDA_LLADDR]); in do_one_request()
418 dbdat.size = RTA_PAYLOAD(tb[NDA_LLADDR]); in do_one_request()
419 dbase->put(dbase, &dbkey, &dbdat, 0); in do_one_request()
485 DBT dbkey, dbdat; in get_arp_pkt() local
520 if (dbase->get(dbase, &dbkey, &dbdat, 0) == 0 && !IS_NEG(dbdat.data)) { in get_arp_pkt()
521 if (memcmp(dbdat.data, a+1, dbdat.size) == 0) in get_arp_pkt()
528 dbdat.data = a+1; in get_arp_pkt()
529 dbdat.size = a->ar_hln; in get_arp_pkt()
530 dbase->put(dbase, &dbkey, &dbdat, 0); in get_arp_pkt()
685 DBT dbkey, dbdat; in main() local
719 dbdat.size = 6; in main()
721 if (dbase->put(dbase, &dbkey, &dbdat, 0)) { in main()
732 DBT dbkey, dbdat; in main() local
735 while (dbase->seq(dbase, &dbkey, &dbdat, R_NEXT) == 0) { in main()
739 if (!IS_NEG(dbdat.data)) { in main()
745 ll_addr_n2a(dbdat.data, 6, ARPHRD_ETHER, b1, 18)); in main()
750 NEG_AGE(dbdat.data)); in main()