Lines Matching defs:req_sz
219 static int rtattr_pack(struct nlmsghdr *nh, size_t req_sz,
226 if (req_sz < nl_size) {
227 printk("req buf is too small: %zu < %zu", req_sz, nl_size);
240 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz,
245 if (rtattr_pack(nh, req_sz, rta_type, payload, size))
251 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz,
254 return _rtattr_begin(nh, req_sz, rta_type, 0, 0);
264 static int veth_pack_peerb(struct nlmsghdr *nh, size_t req_sz,
274 peer_attr = _rtattr_begin(nh, req_sz, VETH_INFO_PEER, &pi, sizeof(pi));
278 if (rtattr_pack(nh, req_sz, IFLA_IFNAME, peer, strlen(peer)))
281 if (rtattr_pack(nh, req_sz, IFLA_NET_NS_FD, &ns, sizeof(ns)))
831 static int xfrm_state_pack_algo(struct nlmsghdr *nh, size_t req_sz,
896 if (rtattr_pack(nh, req_sz, type, &alg, sizeof(alg)))
911 if (rtattr_pack(nh, req_sz, type, &alg, sizeof(alg)))