File tree 1 file changed +26
-2
lines changed
1 file changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,19 @@ control MyIngress(inout headers hdr,
79
79
}
80
80
81
81
action ipv4_forward (macAddr_t dstAddr , egressSpec_t port ) {
82
- /* TODO: fill out code in action body */
82
+ /*
83
+ Action function for forwarding IPv4 packets.
84
+
85
+ This function is responsible for forwarding IPv4 packets to the specified
86
+ destination MAC address and egress port.
87
+
88
+ Parameters:
89
+ - dstAddr: Destination MAC address of the packet.
90
+ - port: Egress port where the packet should be forwarded.
91
+
92
+ TODO: Implement the logic for forwarding the IPv4 packet based on the
93
+ destination MAC address and egress port.
94
+ */
83
95
}
84
96
85
97
table ipv4_lpm {
@@ -144,7 +156,19 @@ control MyComputeChecksum(inout headers hdr, inout metadata meta) {
144
156
145
157
control MyDeparser (packet_out packet , in headers hdr ) {
146
158
apply {
147
- /* TODO: add deparser logic */
159
+ /*
160
+ Control function for deparser.
161
+
162
+ This function is responsible for constructing the output packet by appending
163
+ headers to it based on the input headers.
164
+
165
+ Parameters:
166
+ - packet: Output packet to be constructed.
167
+ - hdr: Input headers to be added to the output packet.
168
+
169
+ TODO: Implement the logic for constructing the output packet by appending
170
+ headers based on the input headers.
171
+ */
148
172
}
149
173
}
150
174
You can’t perform that action at this time.
0 commit comments