Home | History | Annotate | Download | only in tests

Lines Matching refs:err

10 	int err, if_index;
13 if ((err = nl_connect(sk, NETLINK_ROUTE)) < 0) {
14 nl_perror(err, "Unable to connect socket");
15 return err;
18 err = rtnl_link_alloc_cache(sk, AF_UNSPEC, &link_cache);
19 if ( err < 0) {
20 nl_perror(err, "Unable to allocate cache");
21 return err;
32 nl_perror(err, "Unable to allocate link");
46 err = rtnl_link_add(sk, link, NLM_F_CREATE);
47 if (err < 0) {
48 nl_perror(err, "Unable to add link");
49 return err;