/busybox-1.35.0/networking/libiproute/ |
D | iprule.c | 219 } req; in iprule_modify() local 222 memset(&req, 0, sizeof(req)); in iprule_modify() 224 req.n.nlmsg_type = cmd; in iprule_modify() 225 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in iprule_modify() 226 req.n.nlmsg_flags = NLM_F_REQUEST; in iprule_modify() 227 req.r.rtm_family = preferred_family; in iprule_modify() 228 req.r.rtm_protocol = RTPROT_BOOT; in iprule_modify() 230 req.r.rtm_scope = RT_SCOPE_UNIVERSE; in iprule_modify() 233 req.r.rtm_type = RTN_UNSPEC; in iprule_modify() 236 req.n.nlmsg_flags |= NLM_F_CREATE|NLM_F_EXCL; in iprule_modify() [all …]
|
D | iplink.c | 138 } req; in set_master() local 140 memset(&req, 0, sizeof(req)); in set_master() 142 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifinfomsg)); in set_master() 143 req.n.nlmsg_flags = NLM_F_REQUEST; in set_master() 144 req.n.nlmsg_type = RTM_NEWLINK; in set_master() 145 req.i.ifi_family = preferred_family; in set_master() 148 req.i.ifi_index = xll_name_to_index(dev); in set_master() 150 addattr_l(&req.n, sizeof(req), IFLA_MASTER, &master, 4); in set_master() 151 if (rtnl_talk(&rth, &req.n, 0, 0, NULL, NULL, NULL) < 0) in set_master() 163 } req; in set_netns() local [all …]
|
D | iproute.c | 385 } req; in iproute_modify() local 394 memset(&req, 0, sizeof(req)); in iproute_modify() 396 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); in iproute_modify() 397 req.n.nlmsg_flags = NLM_F_REQUEST | flags; in iproute_modify() 398 req.n.nlmsg_type = cmd; in iproute_modify() 399 req.r.rtm_family = preferred_family; in iproute_modify() 401 req.r.rtm_table = RT_TABLE_MAIN; in iproute_modify() 403 req.r.rtm_scope = RT_SCOPE_NOWHERE; in iproute_modify() 406 req.r.rtm_scope = RT_SCOPE_UNIVERSE; in iproute_modify() 408 req.r.rtm_protocol = RTPROT_BOOT; in iproute_modify() [all …]
|
D | ipaddress.c | 639 } req; in ipaddr_modify() local 655 memset(&req, 0, sizeof(req)); in ipaddr_modify() 657 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg)); in ipaddr_modify() 658 req.n.nlmsg_flags = NLM_F_REQUEST | flags; in ipaddr_modify() 659 req.n.nlmsg_type = cmd; in ipaddr_modify() 660 req.ifa.ifa_family = preferred_family; in ipaddr_modify() 671 get_prefix(&peer, *argv, req.ifa.ifa_family); in ipaddr_modify() 673 if (req.ifa.ifa_family == AF_UNSPEC) { in ipaddr_modify() 674 req.ifa.ifa_family = peer.family; in ipaddr_modify() 676 addattr_l(&req.n, sizeof(req), IFA_ADDRESS, &peer.data, peer.bytelen); in ipaddr_modify() [all …]
|
D | libnetlink.c | 42 } req; in xrtnl_wilddump_request() local 44 req.nlh.nlmsg_len = sizeof(req); in xrtnl_wilddump_request() 45 req.nlh.nlmsg_type = type; in xrtnl_wilddump_request() 46 req.nlh.nlmsg_flags = NLM_F_ROOT|NLM_F_MATCH|NLM_F_REQUEST; in xrtnl_wilddump_request() 47 req.nlh.nlmsg_pid = 0; in xrtnl_wilddump_request() 48 req.nlh.nlmsg_seq = rth->dump = ++rth->seq; in xrtnl_wilddump_request() 49 req.g.rtgen_family = family; in xrtnl_wilddump_request() 51 rtnl_send(rth, (void*)&req, sizeof(req)); in xrtnl_wilddump_request() 92 int FAST_FUNC rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len) in rtnl_dump_request() argument 99 struct iovec iov[2] = { { &s.nlh, sizeof(s.nlh) }, { req, len } }; in rtnl_dump_request()
|
D | libnetlink.h | 24 extern int rtnl_dump_request(struct rtnl_handle *rth, int type, void *req, int len) FAST_FUNC;
|
/busybox-1.35.0/networking/ |
D | arp.c | 108 struct arpreq req; in arp_del() local 113 memset(&req, 0, sizeof(req)); in arp_del() 122 memcpy(&req.arp_pa, &sa, sizeof(struct sockaddr)); in arp_del() 125 req.arp_ha.sa_family = hw->type; in arp_del() 127 req.arp_flags = ATF_PERM; in arp_del() 140 req.arp_flags &= ~ATF_PERM; in arp_del() 144 req.arp_flags |= ATF_USETRAILERS; in arp_del() 149 req.arp_flags |= ATF_DONTPUB; in arp_del() 157 req.arp_flags |= ATF_MAGIC; in arp_del() 177 memcpy(&req.arp_netmask, &sa, sizeof(struct sockaddr)); in arp_del() [all …]
|
/busybox-1.35.0/libbb/ |
D | inet_common.c | 154 struct addrinfo req, *ai = NULL; in INET6_resolve() local 157 memset(&req, 0, sizeof(req)); in INET6_resolve() 158 req.ai_family = AF_INET6; in INET6_resolve() 159 s = getaddrinfo(name, NULL, &req, &ai); in INET6_resolve()
|
/busybox-1.35.0/miscutils/ |
D | bc.c | 1116 static void bc_vec_expand(BcVec *v, size_t req) in bc_vec_expand() argument 1118 if (v->cap < req) { in bc_vec_expand() 1119 v->v = xrealloc(v->v, v->size * req); in bc_vec_expand() 1120 v->cap = req; in bc_vec_expand() 1348 static void bc_num_init(BcNum *n, size_t req) in bc_num_init() argument 1350 req = req >= BC_NUM_DEF_SIZE ? req : BC_NUM_DEF_SIZE; in bc_num_init() 1352 n->num = xmalloc(req); in bc_num_init() 1353 n->cap = req; in bc_num_init() 1364 static void bc_num_expand(BcNum *n, size_t req) in bc_num_expand() argument 1366 req = req >= BC_NUM_DEF_SIZE ? req : BC_NUM_DEF_SIZE; in bc_num_expand() [all …]
|