Searched refs:GENL_HDRLEN (Results 1 – 7 of 7) sorted by relevance
150 if (!nlmsg_valid_hdr(nlh, GENL_HDRLEN)) in genlmsg_valid_hdr()192 return ((unsigned char *) gnlh + GENL_HDRLEN); in genlmsg_data()203 return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_len()255 nlh = nlmsg_put(msg, pid, seq, family, GENL_HDRLEN + hdrlen, flags); in genlmsg_put()263 return nlmsg_data(nlh) + GENL_HDRLEN; in genlmsg_put()
56 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in genl_ctrl_resolve_family()92 len -= NLMSG_LENGTH(GENL_HDRLEN); in genl_ctrl_resolve_family()99 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_ctrl_resolve_family()205 len -= NLMSG_LENGTH(GENL_HDRLEN); in print_ctrl()212 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in print_ctrl()299 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in ctrl_list()
104 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in create_tunnel()137 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in delete_tunnel()160 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in create_session()202 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in delete_session()285 parse_rtattr(attrs, L2TP_ATTR_MAX, (void *)ghdr + GENL_HDRLEN, len); in get_response()377 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in get_session()420 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in get_tunnel()737 len -= NLMSG_LENGTH(GENL_HDRLEN); in genl_parse_getfamily()744 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_parse_getfamily()764 req.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); in genl_ctrl_resolve_family()
18 #define GENL_HDRSIZE(hdrlen) (GENL_HDRLEN + (hdrlen))
18 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr)) macro
17 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr)) macro