diff options
Diffstat (limited to 'ip/ipaddrlabel.c')
-rw-r--r-- | ip/ipaddrlabel.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ip/ipaddrlabel.c b/ip/ipaddrlabel.c index 6076bb95..b4cd7840 100644 --- a/ip/ipaddrlabel.c +++ b/ip/ipaddrlabel.c @@ -75,9 +75,8 @@ int print_addrlabel(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg if (tb[IFAL_ADDRESS]) { fprintf(fp, "prefix %s/%u ", - format_host(ifal->ifal_family, - RTA_PAYLOAD(tb[IFAL_ADDRESS]), - RTA_DATA(tb[IFAL_ADDRESS])), + format_host_rta(ifal->ifal_family, + tb[IFAL_ADDRESS]), ifal->ifal_prefixlen); } |