• J
    l2tp: make datapath sequence number support RFC-compliant · 8a1631d5
    James Chapman 提交于
    The L2TP datapath is not currently RFC-compliant when sequence numbers
    are used in L2TP data packets. According to the L2TP RFC, any received
    sequence number NR greater than or equal to the next expected NR is
    acceptable, where the "greater than or equal to" test is determined by
    the NR wrap point. This differs for L2TPv2 and L2TPv3, so add state in
    the session context to hold the max NR value and the NR window size in
    order to do the acceptable sequence number value check. These might be
    configurable later, but for now we derive it from the tunnel L2TP
    version, which determines the sequence number field size.
    Signed-off-by: NJames Chapman <jchapman@katalix.com>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    8a1631d5
l2tp_core.c 53.7 KB