Deleted Added
full compact
ipcp.h (50479) ipcp.h (50867)
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan. The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 *
1/*
2 * Written by Toshiharu OHNO (tony-o@iij.ad.jp)
3 *
4 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd.
5 *
6 * Redistribution and use in source and binary forms are permitted
7 * provided that the above copyright notice and this paragraph are
8 * duplicated in all such forms and that any documentation,
9 * advertising materials, and other materials related to such
10 * distribution and use acknowledge that the software was developed
11 * by the Internet Initiative Japan. The name of the
12 * IIJ may not be used to endorse or promote products derived
13 * from this software without specific prior written permission.
14 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
15 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
16 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 *
18 * $FreeBSD: head/usr.sbin/ppp/ipcp.h 50479 1999-08-28 01:35:59Z peter $
18 * $FreeBSD: head/usr.sbin/ppp/ipcp.h 50867 1999-09-04 00:00:21Z brian $
19 *
20 * TODO:
21 */
22
23#define IPCP_MAXCODE CODE_CODEREJ
24
25#define TY_IPADDRS 1
26#define TY_COMPPROTO 2

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

64 unsigned HaveTriggerAddress : 1; /* Trigger address specified */
65
66 struct {
67 struct in_addr dns[2]; /* DNS addresses offered */
68 unsigned dns_neg : 2; /* dns negotiation */
69 struct in_addr nbns[2]; /* NetBIOS NS addresses offered */
70 } ns;
71
19 *
20 * TODO:
21 */
22
23#define IPCP_MAXCODE CODE_CODEREJ
24
25#define TY_IPADDRS 1
26#define TY_COMPPROTO 2

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

64 unsigned HaveTriggerAddress : 1; /* Trigger address specified */
65
66 struct {
67 struct in_addr dns[2]; /* DNS addresses offered */
68 unsigned dns_neg : 2; /* dns negotiation */
69 struct in_addr nbns[2]; /* NetBIOS NS addresses offered */
70 } ns;
71
72 struct {
73 unsigned nports; /* How many urgent ports */
74 unsigned maxports; /* How many allocated urgent ports */
75 u_short *port; /* The urgent ports */
76 } urgent;
77
72 struct fsm_retry fsm; /* How often/frequently to resend requests */
73 } cfg;
74
75 struct {
76 struct slcompress cslc; /* VJ state */
77 struct slstat slstat; /* VJ statistics */
78 } vj;
79

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

88
89 struct in_addr my_ip; /* IP address I'm willing to use */
90 u_int32_t my_compproto; /* VJ params I'm willing to use */
91
92 u_int32_t peer_reject; /* Request codes rejected by peer */
93 u_int32_t my_reject; /* Request codes I have rejected */
94
95 struct pppThroughput throughput; /* throughput statistics */
78 struct fsm_retry fsm; /* How often/frequently to resend requests */
79 } cfg;
80
81 struct {
82 struct slcompress cslc; /* VJ state */
83 struct slstat slstat; /* VJ statistics */
84 } vj;
85

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

94
95 struct in_addr my_ip; /* IP address I'm willing to use */
96 u_int32_t my_compproto; /* VJ params I'm willing to use */
97
98 u_int32_t peer_reject; /* Request codes rejected by peer */
99 u_int32_t my_reject; /* Request codes I have rejected */
100
101 struct pppThroughput throughput; /* throughput statistics */
96 struct mqueue Queue[PRI_FAST + 1]; /* Output packet queues */
102 struct mqueue Queue[3]; /* Output packet queues */
97};
98
99#define fsm2ipcp(fp) (fp->proto == PROTO_IPCP ? (struct ipcp *)fp : NULL)
103};
104
105#define fsm2ipcp(fp) (fp->proto == PROTO_IPCP ? (struct ipcp *)fp : NULL)
106#define IPCP_QUEUES(ipcp) (sizeof ipcp->Queue / sizeof ipcp->Queue[0])
100
101struct bundle;
102struct link;
103struct cmdargs;
104
105extern void ipcp_Init(struct ipcp *, struct bundle *, struct link *,
106 const struct fsm_parent *);
107
108struct bundle;
109struct link;
110struct cmdargs;
111
112extern void ipcp_Init(struct ipcp *, struct bundle *, struct link *,
113 const struct fsm_parent *);
114extern void ipcp_Destroy(struct ipcp *);
107extern void ipcp_Setup(struct ipcp *, u_int32_t);
108extern void ipcp_SetLink(struct ipcp *, struct link *);
109
110extern int ipcp_Show(struct cmdargs const *);
111extern struct mbuf *ipcp_Input(struct bundle *, struct link *, struct mbuf *);
112extern void ipcp_AddInOctets(struct ipcp *, int);
113extern void ipcp_AddOutOctets(struct ipcp *, int);
114extern int ipcp_UseHisIPaddr(struct bundle *, struct in_addr);
115extern int ipcp_UseHisaddr(struct bundle *, const char *, int);
116extern int ipcp_vjset(struct cmdargs const *);
117extern void ipcp_CleanInterface(struct ipcp *);
118extern int ipcp_InterfaceUp(struct ipcp *);
115extern void ipcp_Setup(struct ipcp *, u_int32_t);
116extern void ipcp_SetLink(struct ipcp *, struct link *);
117
118extern int ipcp_Show(struct cmdargs const *);
119extern struct mbuf *ipcp_Input(struct bundle *, struct link *, struct mbuf *);
120extern void ipcp_AddInOctets(struct ipcp *, int);
121extern void ipcp_AddOutOctets(struct ipcp *, int);
122extern int ipcp_UseHisIPaddr(struct bundle *, struct in_addr);
123extern int ipcp_UseHisaddr(struct bundle *, const char *, int);
124extern int ipcp_vjset(struct cmdargs const *);
125extern void ipcp_CleanInterface(struct ipcp *);
126extern int ipcp_InterfaceUp(struct ipcp *);
127extern int ipcp_IsUrgentPort(struct ipcp *, u_short, u_short);
128extern void ipcp_AddUrgentPort(struct ipcp *, u_short);
129extern void ipcp_RemoveUrgentPort(struct ipcp *, u_short);
130extern void ipcp_ClearUrgentPorts(struct ipcp *);
119extern struct in_addr addr2mask(struct in_addr);
131extern struct in_addr addr2mask(struct in_addr);