Skip to content

Commit

Permalink
Update datapath.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Shahbaz committed Jun 24, 2015
1 parent 8c2cd8e commit 11d8617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netasm/back_ends/soft_switch/datapath.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ def rx_packet(self, packet, in_port, packet_data=None):
port = ports_to_bitmap(in_port)
state.header[Field('inport_bitmap')] = Value(port, Size(_MAX_PORTS))
state.header[Field('outport_bitmap')] = Value(0, Size(_MAX_PORTS))
state.header[Field('bit_length')] = Value(len(state.packet), Size(_MAX_PORTS))
state.header[Field('bit_length')] = Value(len(state.packet), Size(32))
state.header[Field('DRP')] = Value(0, Size(1))
state.header[Field('CTR')] = Value(0, Size(1))

Expand Down

0 comments on commit 11d8617

Please sign in to comment.