mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-03 20:47:11 +00:00
Merge branch 'master' into net-next
This commit is contained in:
commit
b89c359c15
@ -163,6 +163,8 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
|
||||
fprintf(fp, "offload ");
|
||||
|
||||
fprintf(fp, "%s\n", state_n2a(r->ndm_state));
|
||||
fflush(fp);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -135,6 +135,8 @@ int print_mdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
|
||||
}
|
||||
}
|
||||
|
||||
fflush(fp);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@ -1674,7 +1674,7 @@ static int iproute_get(int argc, char **argv)
|
||||
req.r.rtm_flags |= RTM_F_LOOKUP_TABLE;
|
||||
|
||||
if (rtnl_talk(&rth, &req.n, &req.n, sizeof(req)) < 0)
|
||||
exit(2);
|
||||
return -2;
|
||||
|
||||
if (connected && !from_ok) {
|
||||
struct rtmsg *r = NLMSG_DATA(&req.n);
|
||||
|
||||
@ -36,7 +36,6 @@ static void usage(void)
|
||||
fprintf(stderr, "SELECTOR := [ not ] [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK[/MASK] ]\n");
|
||||
fprintf(stderr, " [ iif STRING ] [ oif STRING ] [ pref NUMBER ]\n");
|
||||
fprintf(stderr, "ACTION := [ table TABLE_ID ]\n");
|
||||
fprintf(stderr, " [ prohibit | reject | unreachable ]\n");
|
||||
fprintf(stderr, " [ realms [SRCREALM/]DSTREALM ]\n");
|
||||
fprintf(stderr, " [ goto NUMBER ]\n");
|
||||
fprintf(stderr, " SUPPRESSOR\n");
|
||||
|
||||
@ -41,7 +41,7 @@ ip-rule \- routing policy database management
|
||||
.IR TABLE_ID " ] [ "
|
||||
.B nat
|
||||
.IR ADDRESS " ] [ "
|
||||
.BR prohibit " | " reject " | " unreachable " ] [ " realms
|
||||
.B realms
|
||||
.RI "[" SRCREALM "/]" DSTREALM " ]"
|
||||
.I SUPPRESSOR
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user