Skip to content

Commit dae2db9

Browse files
author
Guillaume Valadon
committed
Specify the source IP address
1 parent 89105fd commit dae2db9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/contrib/icmp_extensions.uts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
= Basic build
44

5-
p = IP(dst="142.250.209.14")/ICMP()/ICMPExtensionHeader(version = 2)/ICMPExtensionMPLS(classnum = 1, classtype = 1)
6-
b = b'E\x00\x00$\x00\x01\x00\x00@\x01/\xfc\xc0\xa8*+\x8e\xfa\xd1\x0e\x08\x00\xf6\xfa\x00\x00\x00\x00 \x00\xdf\xff\x00\x04\x01\x01'
5+
p = IP(src="192.0.2.1", dst="192.0.2.2")/ICMP()/ICMPExtensionHeader(version = 2)/ICMPExtensionMPLS(classnum = 1, classtype = 1)
6+
print(raw(p))
7+
b = b'E\x00\x00$\x00\x01\x00\x00@\x01\xf6\xd4\xc0\x00\x02\x01\xc0\x00\x02\x02\x08\x00\xf6\xfa\x00\x00\x00\x00 \x00\xdf\xff\x00\x04\x01\x01'
78
assert raw(p) == b

0 commit comments

Comments
 (0)