simple-k8s-cni
simple-k8s-cni copied to clipboard
this is a test for custom cni
From the author tutorial: "The official cilium blog says that the skb should be directly redirected from the vxlan device to the half veth of the pod in netns through...
问题
请问[veth_ingress](https://github.com/y805939188/simple-k8s-cni/blob/master/plugins/vxlan/ebpf/veth_ingress.c#L86)代码中 ```c bpf_memcpy(src_mac, ep->nodeMac, ETH_ALEN); bpf_memcpy(dst_mac, ep->mac, ETH_ALEN); bpf_skb_store_bytes(skb, offsetof(struct ethhdr, h_source), dst_mac, ETH_ALEN, 0); bpf_skb_store_bytes(skb, offsetof(struct ethhdr, h_dest), src_mac, ETH_ALEN, 0); return bpf_redirect_peer(ep->lxcIfIndex, 0); ``` h_source 为什么是dst_mac ,h_dest为什么是src_mac ,这里不是太理解...