Lines Matching defs:req_sz
216 static int rtattr_pack(struct nlmsghdr *nh, size_t req_sz,
223 if (req_sz < nl_size) {
224 printk("req buf is too small: %zu < %zu", req_sz, nl_size);
237 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz,
242 if (rtattr_pack(nh, req_sz, rta_type, payload, size))
248 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz,
251 return _rtattr_begin(nh, req_sz, rta_type, 0, 0);
261 static int veth_pack_peerb(struct nlmsghdr *nh, size_t req_sz,
271 peer_attr = _rtattr_begin(nh, req_sz, VETH_INFO_PEER, &pi, sizeof(pi));
275 if (rtattr_pack(nh, req_sz, IFLA_IFNAME, peer, strlen(peer)))
278 if (rtattr_pack(nh, req_sz, IFLA_NET_NS_FD, &ns, sizeof(ns)))
828 static int xfrm_state_pack_algo(struct nlmsghdr *nh, size_t req_sz,
893 if (rtattr_pack(nh, req_sz, type, &alg, sizeof(alg)))
908 if (rtattr_pack(nh, req_sz, type, &alg, sizeof(alg)))