/[gentoo-x86]/net-misc/lldpd/files/lldpd-0.7.10-only-use-physical-for-chassis-id.patch
Gentoo

Contents of /net-misc/lldpd/files/lldpd-0.7.10-only-use-physical-for-chassis-id.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download) (as text)
Mon Oct 13 18:06:06 2014 UTC (5 years, 3 months ago) by chutzpah
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-diff
FILE REMOVED
Revision bump, make sure to pass LLDPD_OPTS to the command line (bug #525190). Remove old.

(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)

1 commit 790752d0b5e7941a2e368cee6e30df6695162752
2 Author: Vincent Bernat <vincent@bernat.im>
3 Date: Thu Sep 18 11:27:21 2014 +0200
4
5 interfaces: only use physical interfaces to get a chassis ID
6
7 diff --git a/src/daemon/interfaces.c b/src/daemon/interfaces.c
8 index d29eacc..a52e99c 100644
9 --- a/src/daemon/interfaces.c
10 +++ b/src/daemon/interfaces.c
11 @@ -288,8 +288,8 @@ interfaces_helper_vlan(struct lldpd *cfg,
12 }
13 #endif
14
15 -/* Fill out chassis ID if not already done. This handler is special
16 - because we will only handle interfaces that are already handled. */
17 +/* Fill out chassis ID if not already done. Only physical interfaces are
18 + * considered. */
19 void
20 interfaces_helper_chassis(struct lldpd *cfg,
21 struct interfaces_device_list *interfaces)
22 @@ -313,7 +313,7 @@ interfaces_helper_chassis(struct lldpd *cfg,
23 return; /* We already have one */
24
25 TAILQ_FOREACH(iface, interfaces, next) {
26 - if (iface->flags) continue;
27 + if (!(iface->type & IFACE_PHYSICAL_T)) continue;
28 if (cfg->g_config.c_cid_pattern &&
29 !pattern_match(iface->name, cfg->g_config.c_cid_pattern, 0)) continue;
30

  ViewVC Help
Powered by ViewVC 1.1.20