• Xin Long's avatar
    sctp: process sctp over udp icmp err on sctp side · 9e47df00
    Xin Long authored
    Previously, sctp over udp was using udp tunnel's icmp err process, which
    only does sk lookup on sctp side. However for sctp's icmp error process,
    there are more things to do, like syncing assoc pmtu/retransmit packets
    for toobig type err, and starting proto_unreach_timer for unreach type
    err etc.
    
    Now after adding PLPMTUD, which also requires to process toobig type err
    on sctp side. This patch is to process icmp err on sctp side by parsing
    the type/code/info in .encap_err_lookup and call sctp's icmp processing
    functions. Note as the 'redirect' err process needs to know the outer
    ip(v6) header's, we have to leave it to udp(v6)_err to handle it.
    Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
    Acked-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9e47df00
ipv6.c 31.5 KB