summaryrefslogtreecommitdiff
path: root/sys/src/9
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-12-18 20:47:55 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-12-18 20:47:55 +0100
commitc1eb4b8d6838109655744ce77e20472f8ea6a8ff (patch)
treea4607dab0f6ad720dd6545215ecd971b871ec5e4 /sys/src/9
parent1f80d31f41a630860d1e1b5712546a3dc9993b4c (diff)
devether: dont forward loopback packets on bridges
Diffstat (limited to 'sys/src/9')
-rw-r--r--sys/src/9/kw/devether.c4
-rw-r--r--sys/src/9/mtx/devether.c4
-rw-r--r--sys/src/9/omap/devether.c4
-rw-r--r--sys/src/9/pc/devether.c4
-rw-r--r--sys/src/9/ppc/devether.c4
-rw-r--r--sys/src/9/sgi/devether.c4
-rw-r--r--sys/src/9/teg2/devether.c4
-rw-r--r--sys/src/9/zynq/devether.c4
8 files changed, 16 insertions, 16 deletions
diff --git a/sys/src/9/kw/devether.c b/sys/src/9/kw/devether.c
index e6d6fdb21..b70d85310 100644
--- a/sys/src/9/kw/devether.c
+++ b/sys/src/9/kw/devether.c
@@ -177,8 +177,8 @@ etheriq(Ether* ether, Block* bp, int fromwire)
if(f = *fp)
if(f->type == type || f->type < 0)
if(tome || multi || f->prom){
- /* Don't want to hear bridged packets */
- if(f->bridge && !fromwire && !fromme)
+ /* Don't want to hear loopback or bridged packets */
+ if(f->bridge && (tome || !fromwire && !fromme))
continue;
if(!f->headersonly){
if(fromwire && fx == 0)
diff --git a/sys/src/9/mtx/devether.c b/sys/src/9/mtx/devether.c
index cdc74061c..a15609508 100644
--- a/sys/src/9/mtx/devether.c
+++ b/sys/src/9/mtx/devether.c
@@ -169,8 +169,8 @@ etheriq(Ether* ether, Block* bp, int fromwire)
if(f = *fp)
if(f->type == type || f->type < 0)
if(tome || multi || f->prom){
- /* Don't want to hear bridged packets */
- if(f->bridge && !fromwire && !fromme)
+ /* Don't want to hear loopback or bridged packets */
+ if(f->bridge && (tome || !fromwire && !fromme))
continue;
if(!f->headersonly){
if(fromwire && fx == 0)
diff --git a/sys/src/9/omap/devether.c b/sys/src/9/omap/devether.c
index 096ec39ee..c4315fa73 100644
--- a/sys/src/9/omap/devether.c
+++ b/sys/src/9/omap/devether.c
@@ -176,8 +176,8 @@ etheriq(Ether* ether, Block* bp, int fromwire)
for(fp = ether->f; fp < ep; fp++){
if((f = *fp) != nil && (f->type == type || f->type < 0) &&
(tome || multi || f->prom)){
- /* Don't want to hear bridged packets */
- if(f->bridge && !fromwire && !fromme)
+ /* Don't want to hear loopback or bridged packets */
+ if(f->bridge && (tome || !fromwire && !fromme))
continue;
if(!f->headersonly){
if(fromwire && fx == 0)
diff --git a/sys/src/9/pc/devether.c b/sys/src/9/pc/devether.c
index 2d2f4ac2e..d7cc76546 100644
--- a/sys/src/9/pc/devether.c
+++ b/sys/src/9/pc/devether.c
@@ -175,8 +175,8 @@ etheriq(Ether* ether, Block* bp, int fromwire)
if(f = *fp)
if(f->type == type || f->type < 0)
if(tome || multi || f->prom){
- /* Don't want to hear bridged packets */
- if(f->bridge && !fromwire && !fromme)
+ /* Don't want to hear loopback or bridged packets */
+ if(f->bridge && (tome || !fromwire && !fromme))
continue;
if(!f->headersonly){
if(fromwire && fx == 0)
diff --git a/sys/src/9/ppc/devether.c b/sys/src/9/ppc/devether.c
index cacc27f4b..6cd311840 100644
--- a/sys/src/9/ppc/devether.c
+++ b/sys/src/9/ppc/devether.c
@@ -170,8 +170,8 @@ etheriq(Ether* ether, Block* bp, int fromwire)
if(f = *fp)
if(f->type == type || f->type < 0)
if(tome || multi || f->prom){
- /* Don't want to hear bridged packets */
- if(f->bridge && !fromwire && !fromme)
+ /* Don't want to hear loopback or bridged packets */
+ if(f->bridge && (tome || !fromwire && !fromme))
continue;
if(!f->headersonly){
if(fromwire && fx == 0)
diff --git a/sys/src/9/sgi/devether.c b/sys/src/9/sgi/devether.c
index b51588304..235447048 100644
--- a/sys/src/9/sgi/devether.c
+++ b/sys/src/9/sgi/devether.c
@@ -175,8 +175,8 @@ etheriq(Ether* ether, Block* bp, int fromwire)
if(f = *fp)
if(f->type == type || f->type < 0)
if(tome || multi || f->prom){
- /* Don't want to hear bridged packets */
- if(f->bridge && !fromwire && !fromme)
+ /* Don't want to hear loopback or bridged packets */
+ if(f->bridge && (tome || !fromwire && !fromme))
continue;
if(!f->headersonly){
if(fromwire && fx == 0)
diff --git a/sys/src/9/teg2/devether.c b/sys/src/9/teg2/devether.c
index b6b5ddf2b..ee3e71a6e 100644
--- a/sys/src/9/teg2/devether.c
+++ b/sys/src/9/teg2/devether.c
@@ -174,8 +174,8 @@ etheriq(Ether* ether, Block* bp, int fromwire)
for(fp = ether->f; fp < ep; fp++){
if((f = *fp) != nil && (f->type == type || f->type < 0) &&
(tome || multi || f->prom)){
- /* Don't want to hear bridged packets */
- if(f->bridge && !fromwire && !fromme)
+ /* Don't want to hear loopback or bridged packets */
+ if(f->bridge && (tome || !fromwire && !fromme))
continue;
if(!f->headersonly){
if(fromwire && fx == 0)
diff --git a/sys/src/9/zynq/devether.c b/sys/src/9/zynq/devether.c
index 79d6b4153..b9353f01e 100644
--- a/sys/src/9/zynq/devether.c
+++ b/sys/src/9/zynq/devether.c
@@ -175,8 +175,8 @@ etheriq(Ether* ether, Block* bp, int fromwire)
if(f = *fp)
if(f->type == type || f->type < 0)
if(tome || multi || f->prom){
- /* Don't want to hear bridged packets */
- if(f->bridge && !fromwire && !fromme)
+ /* Don't want to hear loopback or bridged packets */
+ if(f->bridge && (tome || !fromwire && !fromme))
continue;
if(!f->headersonly){
if(fromwire && fx == 0)