Home
last modified time | relevance | path

Searched refs:gnlh (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.15/Documentation/networking/
Dl2tp.rst274 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 …]
/Linux-v5.15/include/net/
Dgenetlink.h368 static inline void *genlmsg_data(const struct genlmsghdr *gnlh) in genlmsg_data() argument
370 return ((unsigned char *) gnlh + GENL_HDRLEN); in genlmsg_data()
377 static inline int genlmsg_len(const struct genlmsghdr *gnlh) in genlmsg_len() argument
379 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len()
/Linux-v5.15/net/core/
Ddrop_monitor.c177 struct genlmsghdr *gnlh = (struct genlmsghdr *)nlmsg_data(nlh); in reset_per_cpu_data() local
179 genlmsg_end(skb, genlmsg_data(gnlh)); in reset_per_cpu_data()
/Linux-v5.15/drivers/net/wireless/
Dmac80211_hwsim.c4256 struct genlmsghdr *gnlh; in hwsim_virtio_handle_cmd() local
4262 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()