22 Jun, 2005

13 commits


21 Jun, 2005

6 commits

  • Below is a more generic patch to do fib_lookup via netlink. For others
    we should say that we discussed this as a way to verify route selection.
    It's also possible there are others uses for this.

    In short the fist half of struct fib_result_nl is filled in by caller
    and netlink call fills in the other half and returns it.

    In case anyone is interested there is a corresponding user app to compare
    the full routing table this was used to test implementation of the LC-trie.

    Signed-off-by: David S. Miller

    Robert Olsson
     
  • Signed-off-by: Alexey Dobriyan
    Signed-off-by: David S. Miller

    Alexey Dobriyan
     
  • This patch adds the flag XFRM_STATE_NOPMTUDISC for xfrm states. It is
    similar to the nopmtudisc on IPIP/GRE tunnels. It only has an effect
    on IPv4 tunnel mode states. For these states, it will ensure that the
    DF flag is always cleared.

    This is primarily useful to work around ICMP blackholes.

    In future this flag could also allow a larger MTU to be set within the
    tunnel just like IPIP/GRE tunnels. This could be useful for short haul
    tunnels where temporary fragmentation outside the tunnel is desired over
    smaller fragments inside the tunnel.

    Signed-off-by: Herbert Xu
    Acked-by: James Morris
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • This patch adds the xfrm_state_afinfo->init_flags hook which allows
    each address family to perform any common initialisation that does
    not require a corresponding destructor call.

    It will be used subsequently to set the XFRM_STATE_NOPMTUDISC flag
    in IPv4.

    It also fixes up the error codes returned by xfrm_init_state.

    Signed-off-by: Herbert Xu
    Acked-by: James Morris
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • This patch adds xfrm_init_state which is simply a wrapper that calls
    xfrm_get_type and subsequently x->type->init_state. It also gets rid
    of the unused args argument.

    Abstracting it out allows us to add common initialisation code, e.g.,
    to set family-specific flags.

    The add_time setting in xfrm_user.c was deleted because it's already
    set by xfrm_state_alloc.

    Signed-off-by: Herbert Xu
    Acked-by: James Morris
    Signed-off-by: David S. Miller

    Herbert Xu
     
  • Implements sctp_connectx() as defined in the SCTP sockets API draft by
    tunneling the request through a setsockopt().

    Signed-off-by: Frank Filz
    Signed-off-by: Sridhar Samudrala
    Signed-off-by: David S. Miller

    Frank Filz
     

19 Jun, 2005

21 commits