mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
packet lib: ipv6: correct parser() about flow_label
Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
a94efcea3a
commit
c0de228c6d
@ -112,7 +112,7 @@ class ipv6(packet_base.PacketBase):
|
||||
def serialize(self, payload, prev):
|
||||
hdr = bytearray(40)
|
||||
v_tc_flow = (self.version << 28 | self.traffic_class << 20 |
|
||||
self.flow_label << 12)
|
||||
self.flow_label)
|
||||
struct.pack_into(ipv6._PACK_STR, hdr, 0, v_tc_flow,
|
||||
self.payload_length, self.nxt, self.hop_limit,
|
||||
addrconv.ipv6.text_to_bin(self.src),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user