答复: [PATCH] ipvlan: add the check of ip header checksum

2020-07-22 Thread Guodeqing (A)
[mailto:xiyou.wangc...@gmail.com] 发送时间: Wednesday, July 22, 2020 3:39 收件人: Guodeqing (A) 抄送: David Miller ; Jakub Kicinski ; Mahesh Bandewar ; Eric Dumazet ; Linux Kernel Network Developers 主题: Re: [PATCH] ipvlan: add the check of ip header checksum On Tue, Jul 21, 2020 at 6:17 AM guodeqing wrote: > >

Re: [PATCH] ipvlan: add the check of ip header checksum

2020-07-21 Thread David Miller
From: guodeqing Date: Tue, 21 Jul 2020 21:09:22 +0800 > The ip header checksum can be error in the following steps. ... > $ ip netns exec ns1 tc qdisc add dev ip1 root netem corrupt 50% This is not valid. The kernel internally already validated the ipv4 header checksum before forwarding or sen

Re: [PATCH] ipvlan: add the check of ip header checksum

2020-07-21 Thread Cong Wang
On Tue, Jul 21, 2020 at 6:17 AM guodeqing wrote: > > The ip header checksum can be error in the following steps. > $ ip netns add ns1 > $ ip link add gw link eth0 type ipvlan > $ ip addr add 168.16.0.1/24 dev gw > $ ip link set dev gw up > $ ip link add ip1 link eth0 type ipvlan > $ ip link set ip

[PATCH] ipvlan: add the check of ip header checksum

2020-07-21 Thread guodeqing
The ip header checksum can be error in the following steps. $ ip netns add ns1 $ ip link add gw link eth0 type ipvlan $ ip addr add 168.16.0.1/24 dev gw $ ip link set dev gw up $ ip link add ip1 link eth0 type ipvlan $ ip link set ip1 netns ns1 $ ip netns exec ns1 ip link set ip1 up $ ip netns exec