Lines Matching refs:nlh

75 	struct nlmsghdr *nlh;  in fou_add()  local
78 nlh = ynl_gemsg_start_req(ys, ys->family_id, FOU_CMD_ADD, 1); in fou_add()
82 mnl_attr_put_u16(nlh, FOU_ATTR_PORT, req->port); in fou_add()
84 mnl_attr_put_u8(nlh, FOU_ATTR_IPPROTO, req->ipproto); in fou_add()
86 mnl_attr_put_u8(nlh, FOU_ATTR_TYPE, req->type); in fou_add()
88 mnl_attr_put(nlh, FOU_ATTR_REMCSUM_NOPARTIAL, 0, NULL); in fou_add()
90 mnl_attr_put_u32(nlh, FOU_ATTR_LOCAL_V4, req->local_v4); in fou_add()
92 mnl_attr_put_u32(nlh, FOU_ATTR_PEER_V4, req->peer_v4); in fou_add()
94 mnl_attr_put(nlh, FOU_ATTR_LOCAL_V6, req->_present.local_v6_len, req->local_v6); in fou_add()
96 mnl_attr_put(nlh, FOU_ATTR_PEER_V6, req->_present.peer_v6_len, req->peer_v6); in fou_add()
98 mnl_attr_put_u16(nlh, FOU_ATTR_PEER_PORT, req->peer_port); in fou_add()
100 mnl_attr_put_u32(nlh, FOU_ATTR_IFINDEX, req->ifindex); in fou_add()
102 err = ynl_exec(ys, nlh, NULL); in fou_add()
120 struct nlmsghdr *nlh; in fou_del() local
123 nlh = ynl_gemsg_start_req(ys, ys->family_id, FOU_CMD_DEL, 1); in fou_del()
127 mnl_attr_put_u8(nlh, FOU_ATTR_AF, req->af); in fou_del()
129 mnl_attr_put_u32(nlh, FOU_ATTR_IFINDEX, req->ifindex); in fou_del()
131 mnl_attr_put_u16(nlh, FOU_ATTR_PORT, req->port); in fou_del()
133 mnl_attr_put_u16(nlh, FOU_ATTR_PEER_PORT, req->peer_port); in fou_del()
135 mnl_attr_put_u32(nlh, FOU_ATTR_LOCAL_V4, req->local_v4); in fou_del()
137 mnl_attr_put_u32(nlh, FOU_ATTR_PEER_V4, req->peer_v4); in fou_del()
139 mnl_attr_put(nlh, FOU_ATTR_LOCAL_V6, req->_present.local_v6_len, req->local_v6); in fou_del()
141 mnl_attr_put(nlh, FOU_ATTR_PEER_V6, req->_present.peer_v6_len, req->peer_v6); in fou_del()
143 err = ynl_exec(ys, nlh, NULL); in fou_del()
166 int fou_get_rsp_parse(const struct nlmsghdr *nlh, void *data) in fou_get_rsp_parse() argument
174 mnl_attr_for_each(attr, nlh, sizeof(struct genlmsghdr)) { in fou_get_rsp_parse()
246 struct nlmsghdr *nlh; in fou_get() local
249 nlh = ynl_gemsg_start_req(ys, ys->family_id, FOU_CMD_GET, 1); in fou_get()
254 mnl_attr_put_u8(nlh, FOU_ATTR_AF, req->af); in fou_get()
256 mnl_attr_put_u32(nlh, FOU_ATTR_IFINDEX, req->ifindex); in fou_get()
258 mnl_attr_put_u16(nlh, FOU_ATTR_PORT, req->port); in fou_get()
260 mnl_attr_put_u16(nlh, FOU_ATTR_PEER_PORT, req->peer_port); in fou_get()
262 mnl_attr_put_u32(nlh, FOU_ATTR_LOCAL_V4, req->local_v4); in fou_get()
264 mnl_attr_put_u32(nlh, FOU_ATTR_PEER_V4, req->peer_v4); in fou_get()
266 mnl_attr_put(nlh, FOU_ATTR_LOCAL_V6, req->_present.local_v6_len, req->local_v6); in fou_get()
268 mnl_attr_put(nlh, FOU_ATTR_PEER_V6, req->_present.peer_v6_len, req->peer_v6); in fou_get()
275 err = ynl_exec(ys, nlh, &yrs); in fou_get()
304 struct nlmsghdr *nlh; in fou_get_dump() local
313 nlh = ynl_gemsg_start_dump(ys, ys->family_id, FOU_CMD_GET, 1); in fou_get_dump()
315 err = ynl_exec_dump(ys, nlh, &yds); in fou_get_dump()