Skip to content

Commit

Permalink
fix proto compare bug in example
Browse files Browse the repository at this point in the history
Signed-off-by: forrestchen <[email protected]>
  • Loading branch information
ChenLingPeng authored and yonghong-song committed May 27, 2019
1 parent 31309fe commit da4d4d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/networking/xdp/xdp_macswap_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def usage():
else
index = 0;
if (h_proto == IPPROTO_UDP) {
if (index == IPPROTO_UDP) {
swap_src_dst_mac(data);
rc = XDP_TX;
}
Expand Down

0 comments on commit da4d4d7

Please sign in to comment.