summaryrefslogtreecommitdiff
path: root/src/dev/net/sinic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/dev/net/sinic.cc')
-rw-r--r--src/dev/net/sinic.cc34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/dev/net/sinic.cc b/src/dev/net/sinic.cc
index 8d73d1542..c6260078c 100644
--- a/src/dev/net/sinic.cc
+++ b/src/dev/net/sinic.cc
@@ -1170,40 +1170,6 @@ Device::rxFilter(const EthPacketPtr &packet)
panic("receive filter not implemented\n");
bool drop = true;
-
-#if 0
- string type;
-
- EthHdr *eth = packet->eth();
- if (eth->unicast()) {
- // If we're accepting all unicast addresses
- if (acceptUnicast)
- drop = false;
-
- // If we make a perfect match
- if (acceptPerfect && params->eaddr == eth.dst())
- drop = false;
-
- if (acceptArp && eth->type() == ETH_TYPE_ARP)
- drop = false;
-
- } else if (eth->broadcast()) {
- // if we're accepting broadcasts
- if (acceptBroadcast)
- drop = false;
-
- } else if (eth->multicast()) {
- // if we're accepting all multicasts
- if (acceptMulticast)
- drop = false;
-
- }
-
- if (drop) {
- DPRINTF(Ethernet, "rxFilter drop\n");
- DDUMP(EthernetData, packet->data, packet->length);
- }
-#endif
return drop;
}