1. 25 3月, 2008 1 次提交
  2. 29 1月, 2008 4 次提交
    • H
      [IPSEC]: Rename tunnel-mode functions to avoid collisions with tunnels · 195ad6a3
      Herbert Xu 提交于
      It appears that I've managed to create two different functions both
      called xfrm6_tunnel_output.  This is because we have the plain tunnel
      encapsulation named xfrmX_tunnel as well as the tunnel-mode encapsulation
      which lives in the files xfrmX_mode_tunnel.c.
      
      This patch renames functions from the latter to use the xfrmX_mode_tunnel
      prefix to avoid name-space conflicts.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      195ad6a3
    • H
      [IPSEC]: Separate inner/outer mode processing on input · 227620e2
      Herbert Xu 提交于
      With inter-family transforms the inner mode differs from the outer
      mode.  Attempting to handle both sides from the same function means
      that it needs to handle both IPv4 and IPv6 which creates duplication
      and confusion.
      
      This patch separates the two parts on the input path so that each
      function deals with one family only.
      
      In particular, the functions xfrm4_extract_inut/xfrm6_extract_inut
      moves the pertinent fields from the IPv4/IPv6 IP headers into a
      neutral format stored in skb->cb.  This is then used by the inner mode
      input functions to modify the inner IP header.  In this way the input
      function no longer has to know about the outer address family.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      227620e2
    • H
      [IPSEC]: Separate inner/outer mode processing on output · 36cf9acf
      Herbert Xu 提交于
      With inter-family transforms the inner mode differs from the outer
      mode.  Attempting to handle both sides from the same function means
      that it needs to handle both IPv4 and IPv6 which creates duplication
      and confusion.
      
      This patch separates the two parts on the output path so that each
      function deals with one family only.
      
      In particular, the functions xfrm4_extract_output/xfrm6_extract_output
      moves the pertinent fields from the IPv4/IPv6 IP headers into a
      neutral format stored in skb->cb.  This is then used by the outer mode
      output functions to write the outer IP header.  In this way the output
      function no longer has to know about the inner address family.
      
      Since the extract functions are only called by tunnel modes (the only
      modes that can support inter-family transforms), I've also moved the
      xfrm*_tunnel_check_size calls into them.  This allows the correct ICMP
      message to be sent as opposed to now where you might call icmp_send
      with an IPv6 packet and vice versa.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      36cf9acf
    • H
      [INET]: Give outer DSCP directly to ip*_copy_dscp · 29bb43b4
      Herbert Xu 提交于
      This patch changes the prototype of ipv4_copy_dscp and ipv6_copy_dscp so
      that they directly take the outer DSCP rather than the outer IP header.
      This will help us to unify the code for inter-family tunnels.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      29bb43b4
  3. 18 10月, 2007 1 次提交
    • H
      [IPSEC]: Add missing BEET checks · 1bfcb10f
      Herbert Xu 提交于
      Currently BEET mode does not reinject the packet back into the stack
      like tunnel mode does.  Since BEET should behave just like tunnel mode
      this is incorrect.
      
      This patch fixes this by introducing a flags field to xfrm_mode that
      tells the IPsec code whether it should terminate and reinject the packet
      back into the stack.
      
      It then sets the flag for BEET and tunnel mode.
      
      I've also added a number of missing BEET checks elsewhere where we check
      whether a given mode is a tunnel or not.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      1bfcb10f
  4. 11 10月, 2007 3 次提交
  5. 31 5月, 2007 1 次提交
  6. 26 4月, 2007 9 次提交
  7. 27 2月, 2007 1 次提交
  8. 13 2月, 2007 1 次提交
  9. 09 2月, 2007 1 次提交
  10. 23 9月, 2006 1 次提交
  11. 22 7月, 2006 1 次提交
  12. 18 6月, 2006 1 次提交