Skip to content

Commit 1381e9e

Browse files
committed
Change the description in exercise-5.md and snippets.p4 to correct exercise number, change the variable name in snippets.p4 to match main.p4
1 parent 8004d21 commit 1381e9e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

EXERCISE-5.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ below:
401401

402402
## Congratulations!
403403

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

407407
## Appendix A: Understanding ONOS error logs

p4src/snippets.p4

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//------------------------------------------------------------------------------
2-
// SNIPPETS FOR EXERCISE 6 (IPV6 ROUTING)
2+
// SNIPPETS FOR EXERCISE 5 (IPV6 ROUTING)
33
//------------------------------------------------------------------------------
44

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

4040
//------------------------------------------------------------------------------
41-
// SNIPPETS FOR EXERCISE 7 (SRV6)
41+
// SNIPPETS FOR EXERCISE 6 (SRV6)
4242
//------------------------------------------------------------------------------
4343

4444
action insert_srv6h_header(bit<8> num_segments) {
@@ -50,7 +50,7 @@ action insert_srv6h_header(bit<8> num_segments) {
5050
hdr.srv6h.last_entry = num_segments - 1;
5151
hdr.srv6h.flags = 0;
5252
hdr.srv6h.tag = 0;
53-
hdr.ipv6.next_hdr = PROTO_SRV6;
53+
hdr.ipv6.next_hdr = IP_PROTO_SRV6;
5454
}
5555

5656
action srv6_t_insert_2(ipv6_addr_t s1, ipv6_addr_t s2) {
@@ -104,4 +104,4 @@ action srv6_pop() {
104104
hdr.srv6_list[0].setInvalid();
105105
hdr.srv6_list[1].setInvalid();
106106
hdr.srv6_list[2].setInvalid();
107-
}
107+
}

0 commit comments

Comments
 (0)