Deleted Added
full compact
ipv6cp.h (81634) ipv6cp.h (102558)
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/ipv6cp.h 81634 2001-08-14 16:05:52Z brian $
26 * $FreeBSD: head/usr.sbin/ppp/ipv6cp.h 102558 2002-08-29 02:44:58Z brian $
27 */
28
29#ifndef NOINET6
30#define IPV6CP_MAXCODE CODE_CODEREJ
31
32#define TY_TOKEN 1
33#define TY_COMPPROTO 2
34
27 */
28
29#ifndef NOINET6
30#define IPV6CP_MAXCODE CODE_CODEREJ
31
32#define TY_TOKEN 1
33#define TY_COMPPROTO 2
34
35#define IPV6CP_IFIDLEN 8 /* RFC2472 */
36
35struct ipv6cp {
36 struct fsm fsm; /* The finite state machine */
37
38 struct {
39 struct fsm_retry fsm; /* frequency to resend requests */
40 } cfg;
41
42 unsigned peer_tokenreq : 1; /* Any TY_TOKEN REQs from the peer ? */
43
37struct ipv6cp {
38 struct fsm fsm; /* The finite state machine */
39
40 struct {
41 struct fsm_retry fsm; /* frequency to resend requests */
42 } cfg;
43
44 unsigned peer_tokenreq : 1; /* Any TY_TOKEN REQs from the peer ? */
45
44 u_int32_t my_token; /* Token I'm willing to use */
45 u_int32_t peer_token; /* Token he's willing to use */
46 u_char my_ifid[IPV6CP_IFIDLEN]; /* Local Interface Identifier */
47 u_char his_ifid[IPV6CP_IFIDLEN]; /* Peer Interface Identifier */
46
47 struct ncpaddr myaddr; /* Local address */
48 struct ncpaddr hisaddr; /* Peer address */
49
50 u_int32_t his_reject; /* Request codes rejected by peer */
51 u_int32_t my_reject; /* Request codes I have rejected */
52
53 struct pppThroughput throughput; /* throughput statistics */

--- 28 unchanged lines hidden ---
48
49 struct ncpaddr myaddr; /* Local address */
50 struct ncpaddr hisaddr; /* Peer address */
51
52 u_int32_t his_reject; /* Request codes rejected by peer */
53 u_int32_t my_reject; /* Request codes I have rejected */
54
55 struct pppThroughput throughput; /* throughput statistics */

--- 28 unchanged lines hidden ---