Home | History | Annotate | Download | only in tests

Lines Matching refs:err

34 	int err;
39 err = nl_cache_mngr_alloc(sock, NETLINK_ROUTE, NL_AUTO_PROVIDE, &mngr);
40 if (err < 0)
41 fatal(err, "Unable to allocate cache manager: %s",
42 nl_geterror(err));
44 if ((err = nl_cache_mngr_add(mngr, "route/link", &change_cb, &lc)) < 0)
45 fatal(err, "Unable to add cache route/link: %s",
46 nl_geterror(err));
48 if ((err = nl_cache_mngr_add(mngr, "route/neigh", &change_cb, &nc)) < 0)
49 fatal(err, "Unable to add cache route/neigh: %s",
50 nl_geterror(err));
52 if ((err = nl_cache_mngr_add(mngr, "route/addr", &change_cb, &ac)) < 0)
53 fatal(err, "Unable to add cache route/addr: %s",
54 nl_geterror(err));
56 if ((err = nl_cache_mngr_add(mngr, "route/route", &change_cb, &rc)) < 0)
57 fatal(err, "Unable to add cache route/route: %s",
58 nl_geterror(err));
61 int err = nl_cache_mngr_poll(mngr, 5000);
62 if (err < 0 && err != -NLE_INTR)
63 fatal(err, "Polling failed: %s", nl_geterror(err));