Deleted Added
full compact
ipcp.h (58044) ipcp.h (61430)
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 58044 2000-03-14 01:47:27Z brian $
18 * $FreeBSD: head/usr.sbin/ppp/ipcp.h 61430 2000-06-08 20:07:48Z brian $
19 *
20 * TODO:
21 */
22
23#define IPCP_MAXCODE CODE_CODEREJ
24
25#define TY_IPADDRS 1
26#define TY_COMPPROTO 2

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

72 struct {
73 struct in_addr dns[2]; /* DNS addresses offered */
74 unsigned dns_neg : 2; /* dns negotiation */
75 struct in_addr nbns[2]; /* NetBIOS NS addresses offered */
76 } ns;
77
78 struct {
79 struct port_range tcp, udp; /* The range of urgent ports */
19 *
20 * TODO:
21 */
22
23#define IPCP_MAXCODE CODE_CODEREJ
24
25#define TY_IPADDRS 1
26#define TY_COMPPROTO 2

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

72 struct {
73 struct in_addr dns[2]; /* DNS addresses offered */
74 unsigned dns_neg : 2; /* dns negotiation */
75 struct in_addr nbns[2]; /* NetBIOS NS addresses offered */
76 } ns;
77
78 struct {
79 struct port_range tcp, udp; /* The range of urgent ports */
80 unsigned tos : 1; /* Urgent IPTOS_LOWDELAY packets ? */
80 } urgent;
81
82 struct fsm_retry fsm; /* How often/frequently to resend requests */
83 } cfg;
84
85 struct {
86 struct slcompress cslc; /* VJ state */
87 struct slstat slstat; /* VJ statistics */

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

158#define ipcp_RemoveUrgentTcpPort(ipcp, p) \
159 ipcp_RemoveUrgentPort(&(ipcp)->cfg.urgent.tcp, p)
160#define ipcp_RemoveUrgentUdpPort(ipcp, p) \
161 ipcp_RemoveUrgentPort(&(ipcp)->cfg.urgent.udp, p)
162#define ipcp_ClearUrgentTcpPorts(ipcp) \
163 ipcp_ClearUrgentPorts(&(ipcp)->cfg.urgent.tcp)
164#define ipcp_ClearUrgentUdpPorts(ipcp) \
165 ipcp_ClearUrgentPorts(&(ipcp)->cfg.urgent.udp)
81 } urgent;
82
83 struct fsm_retry fsm; /* How often/frequently to resend requests */
84 } cfg;
85
86 struct {
87 struct slcompress cslc; /* VJ state */
88 struct slstat slstat; /* VJ statistics */

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

159#define ipcp_RemoveUrgentTcpPort(ipcp, p) \
160 ipcp_RemoveUrgentPort(&(ipcp)->cfg.urgent.tcp, p)
161#define ipcp_RemoveUrgentUdpPort(ipcp, p) \
162 ipcp_RemoveUrgentPort(&(ipcp)->cfg.urgent.udp, p)
163#define ipcp_ClearUrgentTcpPorts(ipcp) \
164 ipcp_ClearUrgentPorts(&(ipcp)->cfg.urgent.tcp)
165#define ipcp_ClearUrgentUdpPorts(ipcp) \
166 ipcp_ClearUrgentPorts(&(ipcp)->cfg.urgent.udp)
167#define ipcp_ClearUrgentTOS(ipcp) (ipcp)->cfg.urgent.tos = 0;
168#define ipcp_SetUrgentTOS(ipcp) (ipcp)->cfg.urgent.tos = 1;