X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=net%2Fl2tp%2Fl2tp_netlink.c;h=bd7387adea9eff25ce7ffd0683589dcdcc020ad0;hb=0f2776e6151a123552fd06b666fe755fa780a967;hp=4cfd722e91536c1de137ec64f1e33bbc7fc5e1ea;hpb=25945b66903dade5e1297742b4ed0746a77eb5c5;p=~andy%2Flinux diff --git a/net/l2tp/l2tp_netlink.c b/net/l2tp/l2tp_netlink.c index 4cfd722e915..bd7387adea9 100644 --- a/net/l2tp/l2tp_netlink.c +++ b/net/l2tp/l2tp_netlink.c @@ -578,8 +578,10 @@ static int l2tp_nl_cmd_session_modify(struct sk_buff *skb, struct genl_info *inf if (info->attrs[L2TP_ATTR_RECV_SEQ]) session->recv_seq = nla_get_u8(info->attrs[L2TP_ATTR_RECV_SEQ]); - if (info->attrs[L2TP_ATTR_SEND_SEQ]) + if (info->attrs[L2TP_ATTR_SEND_SEQ]) { session->send_seq = nla_get_u8(info->attrs[L2TP_ATTR_SEND_SEQ]); + l2tp_session_set_header_len(session, session->tunnel->version); + } if (info->attrs[L2TP_ATTR_LNS_MODE]) session->lns_mode = nla_get_u8(info->attrs[L2TP_ATTR_LNS_MODE]);