Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
iproute2
bridge-fix-reporting-of-IPv6-addresses.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bridge-fix-reporting-of-IPv6-addresses.patch of Package iproute2
From: Mike Rapoport <mike.rapoport@ravellosystems.com> Date: Thu, 20 Mar 2014 13:06:10 +0200 Subject: bridge: fix reporting of IPv6 addresses Patch-mainline: v3.14.0 Git-commit: 9e763fa5d332f5839673aaf4a7cae10e97932564 References: bnc#879865 Signed-off-by: Mike Rapoport <mike.rapoport@ravellosystems.com> --- bridge/fdb.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bridge/fdb.c b/bridge/fdb.c index e2e53f1..9b720e3 100644 --- a/bridge/fdb.c +++ b/bridge/fdb.c @@ -103,8 +103,13 @@ int print_fdb(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) if (tb[NDA_DST]) { SPRINT_BUF(abuf); + int family = AF_INET; + + if (RTA_PAYLOAD(tb[NDA_DST]) == sizeof(struct in6_addr)) + family = AF_INET6; + fprintf(fp, "dst %s ", - format_host(AF_INET, + format_host(family, RTA_PAYLOAD(tb[NDA_DST]), RTA_DATA(tb[NDA_DST]), abuf, sizeof(abuf))); -- 1.8.4.5
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor