Deleted Added
full compact
mbuf.h (81634) mbuf.h (131327)
1/*-
2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org>
3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp>
4 * Internet Initiative Japan, Inc (IIJ)
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org>
3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp>
4 * Internet Initiative Japan, Inc (IIJ)
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/usr.sbin/ppp/mbuf.h 81634 2001-08-14 16:05:52Z brian $
28 * $FreeBSD: head/usr.sbin/ppp/mbuf.h 131327 2004-06-30 12:24:56Z brian $
29 */
30
31struct mbuf {
32 size_t m_size; /* size allocated (excluding header) */
33 short m_offset; /* offset from header end to start position */
34 size_t m_len; /* available byte count in buffer */
35 short m_type; /* MB_* below */
36 struct mbuf *m_next; /* link to next mbuf */
37 struct mbuf *m_nextpkt; /* link to next packet */
29 */
30
31struct mbuf {
32 size_t m_size; /* size allocated (excluding header) */
33 short m_offset; /* offset from header end to start position */
34 size_t m_len; /* available byte count in buffer */
35 short m_type; /* MB_* below */
36 struct mbuf *m_next; /* link to next mbuf */
37 struct mbuf *m_nextpkt; /* link to next packet */
38 unsigned long priv; /* private data - holds HDLC escape count */
38 /* buffer space is malloc()d directly after the header */
39};
40
41struct mqueue {
42 struct mbuf *top;
43 struct mbuf *last;
44 size_t len;
45};

--- 73 unchanged lines hidden ---
39 /* buffer space is malloc()d directly after the header */
40};
41
42struct mqueue {
43 struct mbuf *top;
44 struct mbuf *last;
45 size_t len;
46};

--- 73 unchanged lines hidden ---