Add the default factory option to the ICMP body factory. (#1159)

This commit is contained in:
Przemysław Fierek
2017-01-16 22:04:56 -08:00
committed by Jonathan Hui
parent 9b7d423f52
commit 7831bf39ed
4 changed files with 32 additions and 22 deletions
+2 -1
View File
@@ -209,7 +209,8 @@ def create_default_ipv6_icmp_body_factories():
return {
ipv6.ICMP_DESTINATION_UNREACHABLE: ipv6.ICMPv6DestinationUnreachableFactory(),
ipv6.ICMP_ECHO_REQUEST: ipv6.ICMPv6EchoBodyFactory(),
ipv6.ICMP_ECHO_RESPONSE: ipv6.ICMPv6EchoBodyFactory()
ipv6.ICMP_ECHO_RESPONSE: ipv6.ICMPv6EchoBodyFactory(),
"default": ipv6.BytesPayloadFactory()
}