Skip to content

Commit

Permalink
Change the description in exercise-5.md and snippets.p4 to correct ex…
Browse files Browse the repository at this point in the history
…ercise number, change the variable name in snippets.p4 to match main.p4
  • Loading branch information
Wailoks committed Mar 4, 2021
1 parent 8004d21 commit 1381e9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion EXERCISE-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ below:

## Congratulations!

You have completed the sixth exercise! Now your fabric is capable of forwarding
You have completed the fifth exercise! Now your fabric is capable of forwarding
IPv6 traffic between any host.

## Appendix A: Understanding ONOS error logs
Expand Down
8 changes: 4 additions & 4 deletions p4src/snippets.p4
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//------------------------------------------------------------------------------
// SNIPPETS FOR EXERCISE 6 (IPV6 ROUTING)
// SNIPPETS FOR EXERCISE 5 (IPV6 ROUTING)
//------------------------------------------------------------------------------

// Action that transforms an NDP NS packet into an NDP NA one for the given
Expand Down Expand Up @@ -38,7 +38,7 @@ action_selector(HashAlgorithm.crc16, 32w1024, 32w16) ecmp_selector;
// }

//------------------------------------------------------------------------------
// SNIPPETS FOR EXERCISE 7 (SRV6)
// SNIPPETS FOR EXERCISE 6 (SRV6)
//------------------------------------------------------------------------------

action insert_srv6h_header(bit<8> num_segments) {
Expand All @@ -50,7 +50,7 @@ action insert_srv6h_header(bit<8> num_segments) {
hdr.srv6h.last_entry = num_segments - 1;
hdr.srv6h.flags = 0;
hdr.srv6h.tag = 0;
hdr.ipv6.next_hdr = PROTO_SRV6;
hdr.ipv6.next_hdr = IP_PROTO_SRV6;
}

action srv6_t_insert_2(ipv6_addr_t s1, ipv6_addr_t s2) {
Expand Down Expand Up @@ -104,4 +104,4 @@ action srv6_pop() {
hdr.srv6_list[0].setInvalid();
hdr.srv6_list[1].setInvalid();
hdr.srv6_list[2].setInvalid();
}
}

0 comments on commit 1381e9e

Please sign in to comment.