Skip to content

Commit

Permalink
revert redundant var inits introduced in ee2f039 and a6b37d2
Browse files Browse the repository at this point in the history
  • Loading branch information
obormot committed Jun 16, 2015
1 parent 708da64 commit 598899d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion dpkt/ethernet.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def _unpack_data(self, buf):
elif self.type == ETH_TYPE_MPLS or self.type == ETH_TYPE_MPLS_MCAST:
# XXX - skip labels (max # of labels is undefined, just use 24)
self.labels = []
i = 0
for i in range(24):
entry = struct.unpack('>I', buf[i * 4:i * 4 + 4])[0]
label = ((entry & MPLS_LABEL_MASK) >> MPLS_LABEL_SHIFT,
Expand Down
1 change: 0 additions & 1 deletion dpkt/llc.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def _unpack_data(self, buf):
buf = buf[4:]
elif self.type == ethernet.ETH_TYPE_MPLS or self.type == ethernet.ETH_TYPE_MPLS_MCAST:
# XXX - skip labels
i = 0
for i in range(24):
if struct.unpack('>I', buf[i:i + 4])[0] & 0x0100: # MPLS_STACK_BOTTOM
break
Expand Down

0 comments on commit 598899d

Please sign in to comment.