Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Jan 2008 22:56:16 +0200
From:      "Niki Denev" <niki@totalterror.net>
To:        freebsd-net@freebsd.org
Cc:        thompsa@freebsd.org
Subject:   [PATCH] [bin/119542] netstat prints incorrectly host routes on bridge interfaces
Message-ID:  <2e77fc10801101256o51705240t44e87f32c8e10998@mail.gmail.com>

index | next in thread | raw e-mail

[-- Attachment #1 --]
Hi,

As mentioned in the PR : http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/119542
netstat needs a little fix to print correctly host routes on bridge interfaces.

The attached patch in the PR and here fixes the problem.

Regards,
Niki

[-- Attachment #2 --]
--- usr.bin/netstat/route.c.orig	2008-01-11 04:14:54.000000000 +0000
+++ usr.bin/netstat/route.c	2008-01-11 04:15:55.000000000 +0000
@@ -660,6 +660,7 @@
 
 			case IFT_ETHER:
 			case IFT_L2VLAN:
+			case IFT_BRIDGE:
 				if (sdl->sdl_alen == ETHER_ADDR_LEN) {
 					cp = ether_ntoa((struct ether_addr *)
 					    (sdl->sdl_data + sdl->sdl_nlen));
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2e77fc10801101256o51705240t44e87f32c8e10998>