OVPN_A_IFINDEX
[OVPN_A_IFINDEX] = { .type = NLA_U32, },
[OVPN_A_IFINDEX] = { .type = NLA_U32, },
[OVPN_A_IFINDEX] = { .type = NLA_U32, },
static const struct nla_policy ovpn_peer_get_dump_nl_policy[OVPN_A_IFINDEX + 1] = {
[OVPN_A_IFINDEX] = { .type = NLA_U32, },
[OVPN_A_IFINDEX] = { .type = NLA_U32, },
[OVPN_A_IFINDEX] = { .type = NLA_U32, },
[OVPN_A_IFINDEX] = { .type = NLA_U32, },
[OVPN_A_IFINDEX] = { .type = NLA_U32, },
[OVPN_A_IFINDEX] = { .type = NLA_U32, },
.maxattr = OVPN_A_IFINDEX,
if (nla_put_u32(msg, OVPN_A_IFINDEX, peer->ovpn->dev->ifindex))
if (nla_put_u32(msg, OVPN_A_IFINDEX, peer->ovpn->dev->ifindex))
if (GENL_REQ_ATTR_CHECK(info, OVPN_A_IFINDEX))
ifindex = nla_get_u32(info->attrs[OVPN_A_IFINDEX]);
NL_SET_BAD_ATTR(info->extack, info->attrs[OVPN_A_IFINDEX]);
if (!attrs[OVPN_A_IFINDEX]) {
ifindex = nla_get_u32(attrs[OVPN_A_IFINDEX]);
NLA_PUT_U32(ctx->nl_msg, OVPN_A_IFINDEX, ovpn->ifindex);