Deleted Added
full compact
ng_l2tp.c (185182) ng_l2tp.c (189170)
1/*-
2 * Copyright (c) 2001-2002 Packet Design, LLC.
3 * All rights reserved.
4 *
5 * Subject to the following obligations and disclaimer of warranty,
6 * use and redistribution of this software, in source or object code
7 * forms, with or without modifications are expressly permitted by
8 * Packet Design; provided, however, that:

--- 22 unchanged lines hidden (view full) ---

31 * USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY THEORY OF
32 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
34 * THE USE OF THIS SOFTWARE, EVEN IF PACKET DESIGN IS ADVISED OF
35 * THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Author: Archie Cobbs <archie@freebsd.org>
38 *
1/*-
2 * Copyright (c) 2001-2002 Packet Design, LLC.
3 * All rights reserved.
4 *
5 * Subject to the following obligations and disclaimer of warranty,
6 * use and redistribution of this software, in source or object code
7 * forms, with or without modifications are expressly permitted by
8 * Packet Design; provided, however, that:

--- 22 unchanged lines hidden (view full) ---

31 * USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY THEORY OF
32 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
34 * THE USE OF THIS SOFTWARE, EVEN IF PACKET DESIGN IS ADVISED OF
35 * THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Author: Archie Cobbs <archie@freebsd.org>
38 *
39 * $FreeBSD: head/sys/netgraph/ng_l2tp.c 185182 2008-11-22 16:40:12Z mav $
39 * $FreeBSD: head/sys/netgraph/ng_l2tp.c 189170 2009-02-28 16:21:25Z ed $
40 */
41
42/*
43 * L2TP netgraph node type.
44 *
45 * This node type implements the lower layer of the
46 * L2TP protocol as specified in RFC 2661.
47 */

--- 289 unchanged lines hidden (view full) ---

337
338/* Sequence number state sanity checking */
339#ifdef INVARIANTS
340#define L2TP_SEQ_CHECK(seq) ng_l2tp_seq_check(seq)
341#else
342#define L2TP_SEQ_CHECK(x) do { } while (0)
343#endif
344
40 */
41
42/*
43 * L2TP netgraph node type.
44 *
45 * This node type implements the lower layer of the
46 * L2TP protocol as specified in RFC 2661.
47 */

--- 289 unchanged lines hidden (view full) ---

337
338/* Sequence number state sanity checking */
339#ifdef INVARIANTS
340#define L2TP_SEQ_CHECK(seq) ng_l2tp_seq_check(seq)
341#else
342#define L2TP_SEQ_CHECK(x) do { } while (0)
343#endif
344
345/* memmove macro */
346#define memmove(d, s, l) bcopy(s, d, l)
347
348/* Whether to use m_copypacket() or m_dup() */
349#define L2TP_COPY_MBUF m_copypacket
350
351#define ERROUT(x) do { error = (x); goto done; } while (0)
352
353/************************************************************************
354 NETGRAPH NODE STUFF
355************************************************************************/

--- 1246 unchanged lines hidden ---
345/* Whether to use m_copypacket() or m_dup() */
346#define L2TP_COPY_MBUF m_copypacket
347
348#define ERROUT(x) do { error = (x); goto done; } while (0)
349
350/************************************************************************
351 NETGRAPH NODE STUFF
352************************************************************************/

--- 1246 unchanged lines hidden ---