summaryrefslogtreecommitdiff
path: root/sys/src/9/ppc
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/ppc
parent1f80d31f41a630860d1e1b5712546a3dc9993b4c (diff)
devether: dont forward loopback packets on bridges
Diffstat (limited to 'sys/src/9/ppc')
-rw-r--r--sys/src/9/ppc/devether.c4
1 files changed, 2 insertions, 2 deletions
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)