Changeset 173 for etherws/trunk
- Timestamp:
- 07/23/12 12:22:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
etherws/trunk/etherws.py
r172 r173 71 71 self.data = data 72 72 73 @ property74 def multicast( self):75 return ord( self.data[0]) & 173 @staticmethod 74 def multicast(mac): 75 return ord(mac[0]) & 1 76 76 77 77 @property … … 159 159 def forward(self, src_port, frame): 160 160 try: 161 if not frame.multicast :161 if not frame.multicast(frame.src_mac): 162 162 self._fdb.learn(src_port, frame) 163 163 164 if not frame.multicast(frame.dst_mac): 164 165 dst_port = self._fdb.lookup(frame) 165 166
Note: See TracChangeset
for help on using the changeset viewer.