Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port_data: Use a separate socket for reading and writing #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

david-cermak
Copy link

Hi!
I am proposing a small update to the ext port-data layer, especially useful if running the titan engine in a VM/docker where the external addresses/ports could be altered by NAT/forwarding...

  • The port code is ready to be used with two separate endpoints with different src_ip and dst_ip, but one common UDP socket was used for both of these endpoints. Added a separate fd for reading and writing, so enabling user having a separate source and destination IPs.
  • Fixed a minor bug in setting the src_ip as a parameter.

The port code is ready to be used with two separate endpoints with different src_ip and dst_ip, but one common UDP socket was used for both of these endpoints. Added a separate fd for reading and writing, so enabling user having a separate source and destination IPs.

Fixed a minor bug in setting the src_ip as a parameter.
@Yao-T
Copy link

Yao-T commented Jul 17, 2020

Hi David, I guess they'd like to test in loopback so the two ports and two ips are needed. It's a more general way. In the tcp2_check.ttcnpp we can check that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants