mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-10-12 21:54:23 +00:00
Merge branch 'master' into net-next
This commit is contained in:
commit
c189177efc
@ -74,7 +74,7 @@ static void usage(void)
|
||||
fprintf(stderr, "CONFFLAG := [ home | nodad | mngtmpaddr | noprefixroute | autojoin ]\n");
|
||||
fprintf(stderr, "LIFETIME := [ valid_lft LFT ] [ preferred_lft LFT ]\n");
|
||||
fprintf(stderr, "LFT := forever | SECONDS\n");
|
||||
fprintf(stderr, "TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | macvtap |\n");
|
||||
fprintf(stderr, "TYPE := { vlan | veth | vcan | vxcan | dummy | ifb | macvlan | macvtap |\n");
|
||||
fprintf(stderr, " bridge | bond | ipoib | ip6tnl | ipip | sit | vxlan | lowpan |\n");
|
||||
fprintf(stderr, " gre | gretap | erspan | ip6gre | ip6gretap | ip6erspan | vti |\n");
|
||||
fprintf(stderr, " nlmon | can | bond_slave | ipvlan | geneve | bridge_slave |\n");
|
||||
|
@ -118,7 +118,7 @@ void iplink_usage(void)
|
||||
"\n"
|
||||
" ip link help [ TYPE ]\n"
|
||||
"\n"
|
||||
"TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | macvtap |\n"
|
||||
"TYPE := { vlan | veth | vcan | vxcan | dummy | ifb | macvlan | macvtap |\n"
|
||||
" bridge | bond | team | ipoib | ip6tnl | ipip | sit | vxlan |\n"
|
||||
" gre | gretap | erspan | ip6gre | ip6gretap | ip6erspan |\n"
|
||||
" vti | nlmon | team_slave | bond_slave | ipvlan | geneve |\n"
|
||||
|
@ -345,6 +345,9 @@ static void ip6tunnel_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb
|
||||
if (!tb)
|
||||
return;
|
||||
|
||||
if (tb[IFLA_IPTUN_COLLECT_METADATA])
|
||||
print_bool(PRINT_ANY, "external", "external ", true);
|
||||
|
||||
if (tb[IFLA_IPTUN_FLAGS])
|
||||
flags = rta_getattr_u32(tb[IFLA_IPTUN_FLAGS]);
|
||||
|
||||
|
@ -393,6 +393,9 @@ static void iptunnel_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[
|
||||
if (!tb)
|
||||
return;
|
||||
|
||||
if (tb[IFLA_IPTUN_COLLECT_METADATA])
|
||||
print_bool(PRINT_ANY, "external", "external ", true);
|
||||
|
||||
if (tb[IFLA_IPTUN_REMOTE]) {
|
||||
unsigned int addr = rta_getattr_u32(tb[IFLA_IPTUN_REMOTE]);
|
||||
|
||||
|
@ -378,7 +378,7 @@ tc_print_action(FILE *f, const struct rtattr *arg, unsigned short tot_acts)
|
||||
}
|
||||
|
||||
}
|
||||
close_json_object();
|
||||
close_json_array(PRINT_JSON, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -528,7 +528,7 @@ static int tc_action_gd(int cmd, unsigned int flags,
|
||||
|
||||
req.n.nlmsg_seq = rth.dump = ++rth.seq;
|
||||
|
||||
if (rtnl_talk(&rth, &req.n, &ans) < 0) {
|
||||
if (rtnl_talk(&rth, &req.n, cmd == RTM_DELACTION ? NULL : &ans) < 0) {
|
||||
fprintf(stderr, "We have an error talking to the kernel\n");
|
||||
return 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user