Lines Matching defs:info

689  * @ptr: the netdevice notifier info (cast to void)
752 * @info: the Generic NETLINK info block
762 static int netlbl_unlabel_addrinfo_get(struct genl_info *info,
769 if (info->attrs[NLBL_UNLABEL_A_IPV4ADDR] &&
770 info->attrs[NLBL_UNLABEL_A_IPV4MASK]) {
771 addr_len = nla_len(info->attrs[NLBL_UNLABEL_A_IPV4ADDR]);
773 addr_len != nla_len(info->attrs[NLBL_UNLABEL_A_IPV4MASK]))
776 *addr = nla_data(info->attrs[NLBL_UNLABEL_A_IPV4ADDR]);
777 *mask = nla_data(info->attrs[NLBL_UNLABEL_A_IPV4MASK]);
779 } else if (info->attrs[NLBL_UNLABEL_A_IPV6ADDR]) {
780 addr_len = nla_len(info->attrs[NLBL_UNLABEL_A_IPV6ADDR]);
782 addr_len != nla_len(info->attrs[NLBL_UNLABEL_A_IPV6MASK]))
785 *addr = nla_data(info->attrs[NLBL_UNLABEL_A_IPV6ADDR]);
786 *mask = nla_data(info->attrs[NLBL_UNLABEL_A_IPV6MASK]);
800 * @info: the Generic NETLINK info block
807 static int netlbl_unlabel_accept(struct sk_buff *skb, struct genl_info *info)
812 if (info->attrs[NLBL_UNLABEL_A_ACPTFLG]) {
813 value = nla_get_u8(info->attrs[NLBL_UNLABEL_A_ACPTFLG]);
827 * @info: the Generic NETLINK info block
834 static int netlbl_unlabel_list(struct sk_buff *skb, struct genl_info *info)
843 data = genlmsg_put_reply(ans_skb, info, &netlbl_unlabel_gnl_family,
857 return genlmsg_reply(ans_skb, info);
867 * @info: the Generic NETLINK info block
876 struct genl_info *info)
890 if (!info->attrs[NLBL_UNLABEL_A_SECCTX] ||
891 !info->attrs[NLBL_UNLABEL_A_IFACE] ||
892 !((!info->attrs[NLBL_UNLABEL_A_IPV4ADDR] ||
893 !info->attrs[NLBL_UNLABEL_A_IPV4MASK]) ^
894 (!info->attrs[NLBL_UNLABEL_A_IPV6ADDR] ||
895 !info->attrs[NLBL_UNLABEL_A_IPV6MASK])))
900 ret_val = netlbl_unlabel_addrinfo_get(info, &addr, &mask, &addr_len);
903 dev_name = nla_data(info->attrs[NLBL_UNLABEL_A_IFACE]);
905 nla_data(info->attrs[NLBL_UNLABEL_A_SECCTX]),
906 nla_len(info->attrs[NLBL_UNLABEL_A_SECCTX]),
919 * @info: the Generic NETLINK info block
928 struct genl_info *info)
941 if (!info->attrs[NLBL_UNLABEL_A_SECCTX] ||
942 !((!info->attrs[NLBL_UNLABEL_A_IPV4ADDR] ||
943 !info->attrs[NLBL_UNLABEL_A_IPV4MASK]) ^
944 (!info->attrs[NLBL_UNLABEL_A_IPV6ADDR] ||
945 !info->attrs[NLBL_UNLABEL_A_IPV6MASK])))
950 ret_val = netlbl_unlabel_addrinfo_get(info, &addr, &mask, &addr_len);
954 nla_data(info->attrs[NLBL_UNLABEL_A_SECCTX]),
955 nla_len(info->attrs[NLBL_UNLABEL_A_SECCTX]),
968 * @info: the Generic NETLINK info block
977 struct genl_info *info)
988 if (!info->attrs[NLBL_UNLABEL_A_IFACE] ||
989 !((!info->attrs[NLBL_UNLABEL_A_IPV4ADDR] ||
990 !info->attrs[NLBL_UNLABEL_A_IPV4MASK]) ^
991 (!info->attrs[NLBL_UNLABEL_A_IPV6ADDR] ||
992 !info->attrs[NLBL_UNLABEL_A_IPV6MASK])))
997 ret_val = netlbl_unlabel_addrinfo_get(info, &addr, &mask, &addr_len);
1000 dev_name = nla_data(info->attrs[NLBL_UNLABEL_A_IFACE]);
1010 * @info: the Generic NETLINK info block
1019 struct genl_info *info)
1029 if (!((!info->attrs[NLBL_UNLABEL_A_IPV4ADDR] ||
1030 !info->attrs[NLBL_UNLABEL_A_IPV4MASK]) ^
1031 (!info->attrs[NLBL_UNLABEL_A_IPV6ADDR] ||
1032 !info->attrs[NLBL_UNLABEL_A_IPV6MASK])))
1037 ret_val = netlbl_unlabel_addrinfo_get(info, &addr, &mask, &addr_len);