Lines Matching refs:dbkey
48 struct dbkey { struct
300 struct dbkey key; in do_one_request()
301 DBT dbkey, dbdat; in do_one_request() local
335 dbkey.data = &key; in do_one_request()
336 dbkey.size = sizeof(key); in do_one_request()
338 if (dbase->get(dbase, &dbkey, &dbdat, 0) != 0) { in do_one_request()
362 dbase->del(dbase, &dbkey, 0); in do_one_request()
388 dbase->put(dbase, &dbkey, &dbdat, 0); in do_one_request()
407 dbase->put(dbase, &dbkey, &dbdat, 0); in do_one_request()
419 dbase->put(dbase, &dbkey, &dbdat, 0); in do_one_request()
484 struct dbkey key; in get_arp_pkt()
485 DBT dbkey, dbdat; in get_arp_pkt() local
517 dbkey.data = &key; in get_arp_pkt()
518 dbkey.size = sizeof(key); in get_arp_pkt()
520 if (dbase->get(dbase, &dbkey, &dbdat, 0) == 0 && !IS_NEG(dbdat.data)) { in get_arp_pkt()
530 dbase->put(dbase, &dbkey, &dbdat, 0); in get_arp_pkt()
684 struct dbkey k; in main()
685 DBT dbkey, dbdat; in main() local
687 dbkey.data = &k; in main()
688 dbkey.size = sizeof(k); 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()
736 struct dbkey *key = dbkey.data; in main()