Lines Matching defs:req_sz
215 static int rtattr_pack(struct nlmsghdr *nh, size_t req_sz,
222 if (req_sz < nl_size) {
223 printk("req buf is too small: %zu < %zu", req_sz, nl_size);
235 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz,
240 if (rtattr_pack(nh, req_sz, rta_type, payload, size))
246 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz,
249 return _rtattr_begin(nh, req_sz, rta_type, 0, 0);
259 static int veth_pack_peerb(struct nlmsghdr *nh, size_t req_sz,
269 peer_attr = _rtattr_begin(nh, req_sz, VETH_INFO_PEER, &pi, sizeof(pi));
273 if (rtattr_pack(nh, req_sz, IFLA_IFNAME, peer, strlen(peer)))
276 if (rtattr_pack(nh, req_sz, IFLA_NET_NS_FD, &ns, sizeof(ns)))
826 static int xfrm_state_pack_algo(struct nlmsghdr *nh, size_t req_sz,
888 if (rtattr_pack(nh, req_sz, type, &alg, sizeof(alg)))
903 if (rtattr_pack(nh, req_sz, type, &alg, sizeof(alg)))