Skip to content
Browse files

l3_learning: Fix expiration

Basically, the packets for a given IP on a given DPID are stored
in a list, but part of the expiration code was treating it as if
there was only a single entry instead of a list.  I think.
  • Loading branch information...
1 parent 08517c8 commit 907e4efed0979e994779f9a780d62ab42ada9f13 @MurphyMc MurphyMc committed Feb 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pox/forwarding/l3_learning.py
View
2 pox/forwarding/l3_learning.py
@@ -120,9 +120,9 @@ def _handle_expiration (self):
empty = []
for k,v in self.lost_buffers.iteritems():
ip,dpid = k
- expires_at,buffer_id,in_port = v
for item in list(v):
+ expires_at,buffer_id,in_port = item
if expires_at < time.time():
# This packet is old. Tell this switch to drop it.
v.remove(item)

0 comments on commit 907e4ef

Please sign in to comment.
Something went wrong with that request. Please try again.