From b7395aea727cb7f1eb06fbb09f7797adee0345f9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 31 Dec 2008 15:59:39 -0800 Subject: [PATCH] secchan: Fix cut-and-paste errors in port speed determination. --- secchan/port-watcher.c | 2 +- secchan/stp-secchan.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/secchan/port-watcher.c b/secchan/port-watcher.c index 2109bdac6..7daa370e7 100644 --- a/secchan/port-watcher.c +++ b/secchan/port-watcher.c @@ -332,7 +332,7 @@ put_features(struct ds *ds, const char *name, uint32_t features) put_duplexes(ds, "10M", features, OFPPF_10MB_HD, OFPPF_10MB_FD); put_duplexes(ds, "100M", features, OFPPF_100MB_HD, OFPPF_100MB_FD); - put_duplexes(ds, "1G", features, OFPPF_100MB_HD, OFPPF_100MB_FD); + put_duplexes(ds, "1G", features, OFPPF_1GB_HD, OFPPF_1GB_FD); if (features & OFPPF_10GB_FD) { ds_put_cstr(ds, " 10G"); } diff --git a/secchan/stp-secchan.c b/secchan/stp-secchan.c index 379bca265..97ad02bbc 100644 --- a/secchan/stp-secchan.c +++ b/secchan/stp-secchan.c @@ -270,7 +270,7 @@ stp_port_changed_cb(uint16_t port_no, speed = 100; } else if (new->curr & (OFPPF_1GB_HD | OFPPF_1GB_FD)) { speed = 1000; - } else if (new->curr & OFPPF_100MB_FD) { + } else if (new->curr & OFPPF_10GB_FD) { speed = 10000; } stp_port_set_speed(p, speed); -- 2.43.0