Annotation of embedaddon/mpd/src/ipv6cp.h, revision 1.1.1.3
1.1 misho 1:
2: /*
3: * ipv6cp.h
4: *
5: * Written by Alexander Motin <mav@FreeBSD.org>
6: */
7:
8: #ifndef _IPV6CP_H_
9: #define _IPV6CP_H_
10:
11: #include <sys/types.h>
12: #include <netinet/in_systm.h>
13: #include <netinet/ip.h>
14: #include "command.h"
15:
16: /*
17: * DEFINITONS
18: */
19:
20: /* Configuration options */
21: /* enum {
22: };*/
23:
24: struct ipv6cpconf {
25: struct optinfo options; /* Configuraion options */
26: };
27: typedef struct ipv6cpconf *Ipv6cpConf;
28:
29: struct ipv6cpstate {
30: struct ipv6cpconf conf; /* Configuration */
31:
32: u_char myintid[8];
33: u_char hisintid[8];
34:
1.1.1.2 misho 35: struct in6_addr want_addr; /* IPv6 address I'm willing to use */
36: struct in6_addr peer_addr; /* IPv6 address he is willing to use */
37:
1.1 misho 38: uint32_t peer_reject; /* Request codes rejected by peer */
39:
40: struct fsm fsm;
41: };
42: typedef struct ipv6cpstate *Ipv6cpState;
43:
44: /*
45: * VARIABLES
46: */
47:
48: extern const struct cmdtab Ipv6cpSetCmds[];
49:
50: /*
51: * FUNCTIONS
52: */
53:
54: extern void Ipv6cpInit(Bund b);
55: extern void Ipv6cpInst(Bund b, Bund bt);
56: extern void Ipv6cpUp(Bund b);
57: extern void Ipv6cpDown(Bund b);
58: extern void Ipv6cpOpen(Bund b);
59: extern void Ipv6cpClose(Bund b);
60: extern int Ipv6cpOpenCmd(Context ctx);
61: extern int Ipv6cpCloseCmd(Context ctx);
62: extern void Ipv6cpInput(Bund b, Mbuf bp);
63: extern void Ipv6cpDefAddress(void);
1.1.1.3 ! misho 64: extern int Ipv6cpStat(Context ctx, int ac, const char *const av[], const void *arg);
1.1 misho 65:
66: #endif
67:
68:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>