This group is locked. No changes can be made to the group while it is locked.
Re: how to set environment to run xdp_redirect_map.py example?
On Tue, May 28, 2019 at 09:20 PM, Gary Lin wrote:
On Tue, May 28, 2019 at 07:32:33PM -0700, forrest0579@... wrote:
These two examples swap mac instead of IP address.
And as an effect with the given topology, the egress package from MachineA-eth1 has dst mac of MachineB-eth0 and src mac of MachineA-eth0, dst IP of MachineA and src IP of MachineB. Assume that due to the dst mac, the package finally delivered back to MachineB, but the dst IP does not match the IP in MachineB. I have no idea in which kind of topology the package could be consumed.
Another question, after swap mac, shouldn't we re-calculate the l2 csum? or if I modify that field like src/dst IP/Port, how can I re-calculate these csum? Does BPF_FUNC_csum_diff helper function work for this?