MCPcopy Create free account
hub / github.com/FDio/vpp / appendIPv6

Method appendIPv6

extras/packetforge/ProtocolHeader.py:267–279  ·  view source on GitHub ↗
(self, big, exp)

Source from the content-addressed store, hash-verified

265 return big
266
267 def appendIPv6(self, big, exp):
268 ipv6 = bytes(16)
269 if exp != None:
270 _, ipv6 = ExpressionConverter.ToIPv6Address(exp)
271 if not ipv6:
272 print("Inavalid IPv6 Address")
273 return False
274
275 for i in range(16):
276 big = big << 8
277 big = big | ipv6[i]
278
279 return big
280
281 def appendMAC(self, big, exp):
282 mac = bytes(6)

Callers 1

appendMethod · 0.95

Calls 1

printFunction · 0.85

Tested by

no test coverage detected