Module Name: src Committed By: maxv Date: Fri Jan 26 07:49:15 UTC 2018
Modified Files: src/sys/net: if_l2tp.c src/sys/netinet: in_l2tp.c src/sys/netinet6: in6_l2tp.c Log Message: Several fixes in L2TP: * l2tp_input(): use m_copydata, and ensure there is enough space in the chain. Otherwise overflow. * l2tp_tcpmss_clamp(): ensure there is enough space in the chain. * in_l2tp_output(): don't check 'sc' against NULL, it can't be NULL. * in_l2tp_input(): no need to call m_pullup since we use m_copydata. Just check the space in the chain. * in_l2tp_input(): if there is a cookie, make sure the chain has enough space. * in6_l2tp_input(): same changes as in_l2tp_input(). Ok knakahara@ To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sys/net/if_l2tp.c cvs rdiff -u -r1.11 -r1.12 src/sys/netinet/in_l2tp.c cvs rdiff -u -r1.13 -r1.14 src/sys/netinet6/in6_l2tp.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.