Home
last modified time | relevance | path

Searched refs:mngr (Results 1 – 4 of 4) sorted by relevance

/external/libnl/lib/
Dcache_mngr.c103 struct nl_cache_mngr *mngr = arg; in event_input() local
113 mngr, msg); in event_input()
119 if (mngr->cm_protocol != protocol) in event_input()
122 for (i = 0; i < mngr->cm_nassocs; i++) { in event_input()
123 if (mngr->cm_assocs[i].ca_cache) { in event_input()
124 ops = mngr->cm_assocs[i].ca_cache->c_ops; in event_input()
135 msg, mngr->cm_assocs[i].ca_cache); in event_input()
136 p.pp_arg = &mngr->cm_assocs[i]; in event_input()
152 struct nl_cache_mngr *mngr; in nl_cache_mngr_alloc() local
158 mngr = calloc(1, sizeof(*mngr)); in nl_cache_mngr_alloc()
[all …]
/external/libnl/tests/
Dtest-cache-mngr.c31 struct nl_cache_mngr *mngr; in main() local
39 err = nl_cache_mngr_alloc(sock, NETLINK_ROUTE, NL_AUTO_PROVIDE, &mngr); in main()
44 if ((err = nl_cache_mngr_add(mngr, "route/link", &change_cb, &lc)) < 0) in main()
48 if ((err = nl_cache_mngr_add(mngr, "route/neigh", &change_cb, &nc)) < 0) in main()
52 if ((err = nl_cache_mngr_add(mngr, "route/addr", &change_cb, &ac)) < 0) in main()
56 if ((err = nl_cache_mngr_add(mngr, "route/route", &change_cb, &rc)) < 0) in main()
61 int err = nl_cache_mngr_poll(mngr, 5000); in main()
67 nl_cache_mngr_free(mngr); in main()
Dtest-nf-cache-mngr.c26 struct nl_cache_mngr *mngr; in main() local
32 mngr = nl_cache_mngr_alloc(sock, NETLINK_NETFILTER, NL_AUTO_PROVIDE); in main()
33 if (!mngr) { in main()
38 ct = nl_cache_mngr_add(mngr, "netfilter/ct", &change_cb); in main()
45 int err = nl_cache_mngr_poll(mngr, 5000); in main()
53 nl_cache_mngr_free(mngr); in main()
D.gitignore1 test-cache-mngr
3 test-nf-cache-mngr