• Home
  • Raw
  • Download

Lines Matching refs:attrs

684 	struct nlattr *attrs;  in __tipc_nl_add_bearer()  local
692 attrs = nla_nest_start(msg->skb, TIPC_NLA_BEARER); in __tipc_nl_add_bearer()
693 if (!attrs) in __tipc_nl_add_bearer()
718 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_bearer()
726 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_bearer()
772 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_bearer_get() local
775 if (!info->attrs[TIPC_NLA_BEARER]) in tipc_nl_bearer_get()
778 err = nla_parse_nested(attrs, TIPC_NLA_BEARER_MAX, in tipc_nl_bearer_get()
779 info->attrs[TIPC_NLA_BEARER], in tipc_nl_bearer_get()
784 if (!attrs[TIPC_NLA_BEARER_NAME]) in tipc_nl_bearer_get()
786 name = nla_data(attrs[TIPC_NLA_BEARER_NAME]); in tipc_nl_bearer_get()
821 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_bearer_disable() local
824 if (!info->attrs[TIPC_NLA_BEARER]) in tipc_nl_bearer_disable()
827 err = nla_parse_nested(attrs, TIPC_NLA_BEARER_MAX, in tipc_nl_bearer_disable()
828 info->attrs[TIPC_NLA_BEARER], in tipc_nl_bearer_disable()
833 if (!attrs[TIPC_NLA_BEARER_NAME]) in tipc_nl_bearer_disable()
836 name = nla_data(attrs[TIPC_NLA_BEARER_NAME]); in tipc_nl_bearer_disable()
855 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_bearer_enable() local
864 if (!info->attrs[TIPC_NLA_BEARER]) in tipc_nl_bearer_enable()
867 err = nla_parse_nested(attrs, TIPC_NLA_BEARER_MAX, in tipc_nl_bearer_enable()
868 info->attrs[TIPC_NLA_BEARER], in tipc_nl_bearer_enable()
873 if (!attrs[TIPC_NLA_BEARER_NAME]) in tipc_nl_bearer_enable()
876 bearer = nla_data(attrs[TIPC_NLA_BEARER_NAME]); in tipc_nl_bearer_enable()
878 if (attrs[TIPC_NLA_BEARER_DOMAIN]) in tipc_nl_bearer_enable()
879 domain = nla_get_u32(attrs[TIPC_NLA_BEARER_DOMAIN]); in tipc_nl_bearer_enable()
881 if (attrs[TIPC_NLA_BEARER_PROP]) { in tipc_nl_bearer_enable()
884 err = tipc_nl_parse_link_prop(attrs[TIPC_NLA_BEARER_PROP], in tipc_nl_bearer_enable()
894 err = tipc_enable_bearer(net, bearer, domain, prio, attrs); in tipc_nl_bearer_enable()
909 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_bearer_add() local
912 if (!info->attrs[TIPC_NLA_BEARER]) in tipc_nl_bearer_add()
915 err = nla_parse_nested(attrs, TIPC_NLA_BEARER_MAX, in tipc_nl_bearer_add()
916 info->attrs[TIPC_NLA_BEARER], in tipc_nl_bearer_add()
921 if (!attrs[TIPC_NLA_BEARER_NAME]) in tipc_nl_bearer_add()
923 name = nla_data(attrs[TIPC_NLA_BEARER_NAME]); in tipc_nl_bearer_add()
933 if (attrs[TIPC_NLA_BEARER_UDP_OPTS]) { in tipc_nl_bearer_add()
935 attrs[TIPC_NLA_BEARER_UDP_OPTS]); in tipc_nl_bearer_add()
952 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_bearer_set() local
955 if (!info->attrs[TIPC_NLA_BEARER]) in tipc_nl_bearer_set()
958 err = nla_parse_nested(attrs, TIPC_NLA_BEARER_MAX, in tipc_nl_bearer_set()
959 info->attrs[TIPC_NLA_BEARER], in tipc_nl_bearer_set()
964 if (!attrs[TIPC_NLA_BEARER_NAME]) in tipc_nl_bearer_set()
966 name = nla_data(attrs[TIPC_NLA_BEARER_NAME]); in tipc_nl_bearer_set()
975 if (attrs[TIPC_NLA_BEARER_PROP]) { in tipc_nl_bearer_set()
978 err = tipc_nl_parse_link_prop(attrs[TIPC_NLA_BEARER_PROP], in tipc_nl_bearer_set()
1001 struct nlattr *attrs; in __tipc_nl_add_media() local
1009 attrs = nla_nest_start(msg->skb, TIPC_NLA_MEDIA); in __tipc_nl_add_media()
1010 if (!attrs) in __tipc_nl_add_media()
1027 nla_nest_end(msg->skb, attrs); in __tipc_nl_add_media()
1035 nla_nest_cancel(msg->skb, attrs); in __tipc_nl_add_media()
1075 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_media_get() local
1077 if (!info->attrs[TIPC_NLA_MEDIA]) in tipc_nl_media_get()
1080 err = nla_parse_nested(attrs, TIPC_NLA_MEDIA_MAX, in tipc_nl_media_get()
1081 info->attrs[TIPC_NLA_MEDIA], in tipc_nl_media_get()
1086 if (!attrs[TIPC_NLA_MEDIA_NAME]) in tipc_nl_media_get()
1088 name = nla_data(attrs[TIPC_NLA_MEDIA_NAME]); in tipc_nl_media_get()
1123 struct nlattr *attrs[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_media_set() local
1125 if (!info->attrs[TIPC_NLA_MEDIA]) in tipc_nl_media_set()
1128 err = nla_parse_nested(attrs, TIPC_NLA_MEDIA_MAX, in tipc_nl_media_set()
1129 info->attrs[TIPC_NLA_MEDIA], in tipc_nl_media_set()
1132 if (!attrs[TIPC_NLA_MEDIA_NAME]) in tipc_nl_media_set()
1134 name = nla_data(attrs[TIPC_NLA_MEDIA_NAME]); in tipc_nl_media_set()
1143 if (attrs[TIPC_NLA_MEDIA_PROP]) { in tipc_nl_media_set()
1146 err = tipc_nl_parse_link_prop(attrs[TIPC_NLA_MEDIA_PROP], in tipc_nl_media_set()