"create_function": create_element,
"configure_function": configure_element,
"help": "",
- "connector_types": [],
+ "connector_types": ["node"],
"box_attributes": ["DAD",
"ProtocolNumber"],
}),
"create_function": create_element,
"configure_function": configure_element,
"help": "",
- "connector_types": [],
+ "connector_types": ["node"],
"box_attributes": ["DefaultTtl",
"IpForward"],
}),
address = endpoint.replace(":", "").decode('hex')[2:]
testbed_instance.set(fdnd_guid, "LinuxSocketAddress", address)
+ # If it's a non-abstract socket, add the path
+ if not address.startswith('\x00'):
+ address = os.path.join( testbed_instance.root_directory, address )
+
# Set tun standard contract attributes
- testbed_instance.set(fdnd_guid, "tun_addr",
- os.path.join( testbed_instance.root_directory, address ) )
+ testbed_instance.set(fdnd_guid, "tun_addr", address )
testbed_instance.set(fdnd_guid, "tun_proto", "fd")
testbed_instance.set(fdnd_guid, "tun_port", 0)
testbed_instance.set(fdnd_guid, "tun_key", "\xfa"*32) # unimportant, fds aren't encrypted
"init_code": connect_node_other,
"can_cross": False
}),
+ dict({
+ "from": ( "ns3", "ns3::Node", "protos" ),
+ "to": ( "ns3", "ns3::Icmpv6L4Protocol", "node" ),
+ "init_code": connect_node_other,
+ "can_cross": False
+ }),
dict({
"from": ( "ns3", "ns3::Node", "protos" ),
"to": ( "ns3", "ns3::Ipv4L3Protocol", "node" ),
"init_code": connect_node_other,
"can_cross": False
}),
+ dict({
+ "from": ( "ns3", "ns3::Node", "protos" ),
+ "to": ( "ns3", "ns3::Ipv6L3Protocol", "node" ),
+ "init_code": connect_node_other,
+ "can_cross": False
+ }),
dict({
"from": ( "ns3", "ns3::Node", "protos" ),
"to": ( "ns3", "ns3::UdpL4Protocol", "node" ),