title: how can i use scapy to get special layers from pkt1 to another pkt2?
body: <p>Now i have one pkt like this: ether-ip-udp-vxlan-ether-ipv6-tcp, and i want to get some layers of that like: ether_ip_udp, i don't want layers of ether_ipv6_tcp.</p>
  
  <p><code>pkt=Ether()/IP()/UDP()/VXLAN()/Ether()/IPv6()/TCP()</code></p>
  
  <p>i tried to use getlayer, but it will get next layer, it's not whar i want.
  <code>pkt=Ether()/IP()/UDP()/VXLAN()/Ether()/IPv6()/TCP()</code></p>
  
  <p><code>pkt.getlayer(Ether)</code></p>
  
  <p>it will get all next layers.</p>
  
  <p>how can i do this in <strong>scapy</strong>?</p>