Lines Matching defs:info
907 int tipc_nl_bearer_get(struct sk_buff *skb, struct genl_info *info)
915 struct net *net = genl_info_net(info);
917 if (!info->attrs[TIPC_NLA_BEARER])
921 info->attrs[TIPC_NLA_BEARER],
922 tipc_nl_bearer_policy, info->extack);
935 msg.portid = info->snd_portid;
936 msg.seq = info->snd_seq;
942 NL_SET_ERR_MSG(info->extack, "Bearer not found");
951 return genlmsg_reply(rep, info);
959 int __tipc_nl_bearer_disable(struct sk_buff *skb, struct genl_info *info)
967 if (!info->attrs[TIPC_NLA_BEARER])
971 info->attrs[TIPC_NLA_BEARER],
972 tipc_nl_bearer_policy, info->extack);
983 NL_SET_ERR_MSG(info->extack, "Bearer not found");
992 int tipc_nl_bearer_disable(struct sk_buff *skb, struct genl_info *info)
997 err = __tipc_nl_bearer_disable(skb, info);
1003 int __tipc_nl_bearer_enable(struct sk_buff *skb, struct genl_info *info)
1014 if (!info->attrs[TIPC_NLA_BEARER])
1018 info->attrs[TIPC_NLA_BEARER],
1019 tipc_nl_bearer_policy, info->extack);
1044 info->extack);
1047 int tipc_nl_bearer_enable(struct sk_buff *skb, struct genl_info *info)
1052 err = __tipc_nl_bearer_enable(skb, info);
1058 int tipc_nl_bearer_add(struct sk_buff *skb, struct genl_info *info)
1066 if (!info->attrs[TIPC_NLA_BEARER])
1070 info->attrs[TIPC_NLA_BEARER],
1071 tipc_nl_bearer_policy, info->extack);
1083 NL_SET_ERR_MSG(info->extack, "Bearer not found");
1091 NL_SET_ERR_MSG(info->extack, "UDP option is unsupported");
1108 int __tipc_nl_bearer_set(struct sk_buff *skb, struct genl_info *info)
1116 if (!info->attrs[TIPC_NLA_BEARER])
1120 info->attrs[TIPC_NLA_BEARER],
1121 tipc_nl_bearer_policy, info->extack);
1131 NL_SET_ERR_MSG(info->extack, "Bearer not found");
1153 NL_SET_ERR_MSG(info->extack,
1160 NL_SET_ERR_MSG(info->extack,
1173 int tipc_nl_bearer_set(struct sk_buff *skb, struct genl_info *info)
1178 err = __tipc_nl_bearer_set(skb, info);
1258 int tipc_nl_media_get(struct sk_buff *skb, struct genl_info *info)
1267 if (!info->attrs[TIPC_NLA_MEDIA])
1271 info->attrs[TIPC_NLA_MEDIA],
1272 tipc_nl_media_policy, info->extack);
1285 msg.portid = info->snd_portid;
1286 msg.seq = info->snd_seq;
1291 NL_SET_ERR_MSG(info->extack, "Media not found");
1301 return genlmsg_reply(rep, info);
1309 int __tipc_nl_media_set(struct sk_buff *skb, struct genl_info *info)
1316 if (!info->attrs[TIPC_NLA_MEDIA])
1320 info->attrs[TIPC_NLA_MEDIA],
1321 tipc_nl_media_policy, info->extack);
1329 NL_SET_ERR_MSG(info->extack, "Media not found");
1348 NL_SET_ERR_MSG(info->extack,
1355 NL_SET_ERR_MSG(info->extack,
1367 int tipc_nl_media_set(struct sk_buff *skb, struct genl_info *info)
1372 err = __tipc_nl_media_set(skb, info);