Deleted Added
full compact
ncp.h (81634) ncp.h (134789)
1/*-
2 * Copyright (c) 2001 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2001 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/usr.sbin/ppp/ncp.h 81634 2001-08-14 16:05:52Z brian $
26 * $FreeBSD: head/usr.sbin/ppp/ncp.h 134789 2004-09-05 01:46:52Z brian $
27 */
28
29struct port_range {
30 unsigned nports; /* How many ports */
31 unsigned maxports; /* How many allocated (malloc) ports */
32 u_short *port; /* The actual ports */
33};
34

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

55};
56
57extern void ncp_Init(struct ncp *, struct bundle *);
58extern void ncp_Destroy(struct ncp *);
59extern int ncp_fsmStart(struct ncp *, struct bundle *);
60extern void ncp_IfaceAddrAdded(struct ncp *, const struct iface_addr *);
61extern void ncp_IfaceAddrDeleted(struct ncp *, const struct iface_addr *);
62extern void ncp_SetLink(struct ncp *, struct link *);
27 */
28
29struct port_range {
30 unsigned nports; /* How many ports */
31 unsigned maxports; /* How many allocated (malloc) ports */
32 u_short *port; /* The actual ports */
33};
34

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

55};
56
57extern void ncp_Init(struct ncp *, struct bundle *);
58extern void ncp_Destroy(struct ncp *);
59extern int ncp_fsmStart(struct ncp *, struct bundle *);
60extern void ncp_IfaceAddrAdded(struct ncp *, const struct iface_addr *);
61extern void ncp_IfaceAddrDeleted(struct ncp *, const struct iface_addr *);
62extern void ncp_SetLink(struct ncp *, struct link *);
63extern void ncp_Enqueue(struct ncp *, int, int, char *, int);
63extern void ncp_Enqueue(struct ncp *, int, unsigned, char *, int);
64extern void ncp_DeleteQueues(struct ncp *);
65extern size_t ncp_QueueLen(struct ncp *);
66extern size_t ncp_FillPhysicalQueues(struct ncp *, struct bundle *);
67extern int ncp_PushPacket(struct ncp *, int *, struct link *);
68extern int ncp_IsUrgentPort(struct port_range *, u_short, u_short);
69extern void ncp_AddUrgentPort(struct port_range *, u_short);
70extern void ncp_RemoveUrgentPort(struct port_range *, u_short);
71extern void ncp_ClearUrgentPorts(struct port_range *);

--- 30 unchanged lines hidden ---
64extern void ncp_DeleteQueues(struct ncp *);
65extern size_t ncp_QueueLen(struct ncp *);
66extern size_t ncp_FillPhysicalQueues(struct ncp *, struct bundle *);
67extern int ncp_PushPacket(struct ncp *, int *, struct link *);
68extern int ncp_IsUrgentPort(struct port_range *, u_short, u_short);
69extern void ncp_AddUrgentPort(struct port_range *, u_short);
70extern void ncp_RemoveUrgentPort(struct port_range *, u_short);
71extern void ncp_ClearUrgentPorts(struct port_range *);

--- 30 unchanged lines hidden ---