Changeset 197 for etherws/trunk
- Timestamp:
- 07/31/12 03:11:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
etherws/trunk/etherws.py
r196 r197 190 190 191 191 def __init__(self, fdb, debug=False): 192 self. _fdb = fdb192 self.fdb = fdb 193 193 self._debug = debug 194 194 self._table = {} … … 198 198 def portlist(self): 199 199 return sorted(self._table.itervalues(), cmp=self.Port.cmp_by_number) 200 201 @property202 def fdb(self):203 return self._fdb204 200 205 201 def get_port(self, portnum): … … 217 213 portnum = self._get_privattr('portnum', interface) 218 214 self._del_privattr('portnum', interface) 219 self. _fdb.delete(self._table[portnum])215 self.fdb.delete(self._table[portnum]) 220 216 del self._table[portnum] 221 217 … … 247 243 try: 248 244 if not frame.src_multicast: 249 self. _fdb.learn(src_port, frame)245 self.fdb.learn(src_port, frame) 250 246 251 247 if not frame.dst_multicast: 252 dst_port = self. _fdb.lookup(frame)248 dst_port = self.fdb.lookup(frame) 253 249 254 250 if dst_port:
Note: See TracChangeset
for help on using the changeset viewer.