aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_vlib.py
diff options
context:
space:
mode:
authorAlexander Chernavin <achernavin@netgate.com>2020-04-03 10:18:44 -0400
committerMatthew Smith <mgsmith@netgate.com>2020-04-17 15:05:25 +0000
commit82fc98fa4578dbbfb156effb11dea6a4e2d0b898 (patch)
treea3a6777c42023a2495fd7bd5880113cc154555b9 /test/test_vlib.py
parentd50ff7fba167035b10def282b5ec166fa7899948 (diff)
dpdk: fix udp-encap for esp in transport mode
Now UDP encapsulation doesn't work in transport mode because: - the encrypt node misses filling of UDP header and it gets sent with all zeros; - the decrypt node misses filling of new IP header and it contains garbage data. With this commit, fill UDP header during encryption and fill IP header during decryption. Change-Id: I87a7bd594f0e312b16d3e5eb19e568b4e3164d36 Type: fix Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Diffstat (limited to 'test/test_vlib.py')
0 files changed, 0 insertions, 0 deletions
lor: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
packet-generator new {
  name x
  limit 1
  node ethernet-input
  size 64-64
  data {
    IP6: 1.2.3 -> 4.5.6
    ICMP: 3002::2 -> 3001::2
    ICMP echo_request
    incrementing 100
  }
}


loop create
loop create
set int state loop0 up
set int state loop1 up

set int ip address loop0 2001:1::1/64
set int ip address loop1 2001:2::1/64

set ip6 neighbor loop0 2001:1::2 00:00:DD:EE:AA:DD
set ip6 neighbor loop1 2001:2::2 00:00:DD:EE:AA:EE

ip route add 3001::/64 via 2001:2::2 loop1

trace add pg-input 100