Lines Matching defs:req_sz
177 static int rtattr_pack(struct nlmsghdr *nh, size_t req_sz,
184 if (req_sz < nl_size) {
185 printk("req buf is too small: %zu < %zu", req_sz, nl_size);
197 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz,
202 if (rtattr_pack(nh, req_sz, rta_type, payload, size))
208 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz,
211 return _rtattr_begin(nh, req_sz, rta_type, 0, 0);
221 static int veth_pack_peerb(struct nlmsghdr *nh, size_t req_sz,
231 peer_attr = _rtattr_begin(nh, req_sz, VETH_INFO_PEER, &pi, sizeof(pi));
235 if (rtattr_pack(nh, req_sz, IFLA_IFNAME, peer, strlen(peer)))
238 if (rtattr_pack(nh, req_sz, IFLA_NET_NS_FD, &ns, sizeof(ns)))
838 static int xfrm_state_pack_algo(struct nlmsghdr *nh, size_t req_sz,
900 if (rtattr_pack(nh, req_sz, type, &alg, sizeof(alg)))
915 if (rtattr_pack(nh, req_sz, type, &alg, sizeof(alg)))