Home | History | Annotate | Download | only in link

Lines Matching refs:tb

87 	struct nlattr *tb[IFLA_IPTUN_MAX + 1];
93 err = nla_parse_nested(tb, IFLA_IPTUN_MAX, data, ip6_tnl_policy);
103 if (tb[IFLA_IPTUN_LINK]) {
104 ip6_tnl->link = nla_get_u32(tb[IFLA_IPTUN_LINK]);
108 if (tb[IFLA_IPTUN_LOCAL]) {
109 nla_memcpy(&ip6_tnl->local, tb[IFLA_IPTUN_LOCAL], sizeof(struct in6_addr));
113 if (tb[IFLA_IPTUN_REMOTE]) {
114 nla_memcpy(&ip6_tnl->remote, tb[IFLA_IPTUN_REMOTE], sizeof(struct in6_addr));
118 if (tb[IFLA_IPTUN_TTL]) {
119 ip6_tnl->ttl = nla_get_u8(tb[IFLA_IPTUN_TTL]);
123 if (tb[IFLA_IPTUN_TOS]) {
124 ip6_tnl->tos = nla_get_u8(tb[IFLA_IPTUN_TOS]);
128 if (tb[IFLA_IPTUN_ENCAP_LIMIT]) {
129 ip6_tnl->encap_limit = nla_get_u8(tb[IFLA_IPTUN_ENCAP_LIMIT]);
133 if (tb[IFLA_IPTUN_FLAGS]) {
134 ip6_tnl->flags = nla_get_u32(tb[IFLA_IPTUN_FLAGS]);
138 if (tb[IFLA_IPTUN_FLOWINFO]) {
139 ip6_tnl->flowinfo = nla_get_u32(tb[IFLA_IPTUN_FLOWINFO]);
143 if (tb[IFLA_IPTUN_PROTO]) {
144 ip6_tnl->proto = nla_get_u8(tb[IFLA_IPTUN_PROTO]);