Searched refs:gnlh (Results 1 – 4 of 4) sorted by relevance
274 struct genlmsghdr *gnlh;281 gnlh = mnl_nlmsg_put_extra_header(nlh, sizeof(*gnlh));282 gnlh->cmd = L2TP_CMD_TUNNEL_CREATE;283 gnlh->version = L2TP_GENL_VERSION;284 gnlh->reserved = 0;295 struct genlmsghdr *gnlh;302 gnlh = mnl_nlmsg_put_extra_header(nlh, sizeof(*gnlh));303 gnlh->cmd = L2TP_CMD_SESSION_CREATE;304 gnlh->version = L2TP_GENL_VERSION;305 gnlh->reserved = 0;[all …]
368 static inline void *genlmsg_data(const struct genlmsghdr *gnlh) in genlmsg_data() argument370 return ((unsigned char *) gnlh + GENL_HDRLEN); in genlmsg_data()377 static inline int genlmsg_len(const struct genlmsghdr *gnlh) in genlmsg_len() argument379 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len()
177 struct genlmsghdr *gnlh = (struct genlmsghdr *)nlmsg_data(nlh); in reset_per_cpu_data() local179 genlmsg_end(skb, genlmsg_data(gnlh)); in reset_per_cpu_data()
4256 struct genlmsghdr *gnlh; in hwsim_virtio_handle_cmd() local4262 gnlh = nlmsg_data(nlh); in hwsim_virtio_handle_cmd()4272 switch (gnlh->cmd) { in hwsim_virtio_handle_cmd()4280 pr_err_ratelimited("hwsim: invalid cmd: %d\n", gnlh->cmd); in hwsim_virtio_handle_cmd()