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

Example basic_tunnel, inconsistencies #263

Open
davidcawork opened this issue Jun 25, 2019 · 1 comment
Open

Example basic_tunnel, inconsistencies #263

davidcawork opened this issue Jun 25, 2019 · 1 comment

Comments

@davidcawork
Copy link
Contributor

Following workflow in the example, they tell us in README.md (Step 2, point 5):

The packet should be received at h2. If you examine the received packet you should see that is consists of an Ethernet header, a tunnel header, an IP header, a TCP header, and the message.

After run it out, I can not see the TCP header anywhere. I compare my p4 code with the solution but it's fine... Checking the send.py tool:

if (dst_id is not None):
        #Using tunneling
        print "sending on interface {} to dst_id {}".format(iface, str(dst_id))
        pkt =  Ether(src=get_if_hwaddr(iface), dst='ff:ff:ff:ff:ff:ff')
        pkt = pkt / MyTunnel(dst_id=dst_id) / IP(dst=addr) / args.message

    else:

        print "sending on interface {} to IP addr {}".format(iface, str(addr))
        pkt =  Ether(src=get_if_hwaddr(iface), dst='ff:ff:ff:ff:ff:ff')
        pkt = pkt / IP(dst=addr) / TCP(dport=1234, sport=random.randint(49152,65535)) /
args.message

You can see how when you use the tunnel does not add header tcp

@jafingerhut
Copy link
Collaborator

Adding 'help wanted' label to this issue in hopes someone with interest can determine whether this is still an issue with the latest tutorials files, or perhaps this was fixed some time ago.

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

No branches or pull requests

2 participants