]> git.ozlabs.org Git - ppp.git/blob - svr4/ppp_ahdlc_mod.c
sifdefaultroute now gets both local and remote addresses;
[ppp.git] / svr4 / ppp_ahdlc_mod.c
1 #include <sys/types.h>
2 #include <sys/param.h>
3 #include <sys/conf.h>
4 #include <sys/modctl.h>
5 #include <sys/sunddi.h>
6
7 extern struct streamtab ppp_ahdlcinfo;
8
9 static struct fmodsw fsw = {
10     "ppp_ahdl",
11     &ppp_ahdlcinfo,
12     D_NEW | D_MP | D_MTQPAIR
13 };
14
15 extern struct mod_ops mod_strmodops;
16
17 static struct modlstrmod modlstrmod = {
18     &mod_strmodops,
19     "PPP async HDLC module",
20     &fsw
21 };
22
23 static struct modlinkage modlinkage = {
24     MODREV_1,
25     (void *) &modlstrmod,
26     NULL
27 };
28
29 /*
30  * Entry points for modloading.
31  */
32 int
33 _init(void)
34 {
35     return mod_install(&modlinkage);
36 }
37
38 int
39 _fini(void)
40 {
41     return mod_remove(&modlinkage);
42 }
43
44 int
45 _info(mip)
46     struct modinfo *mip;
47 {
48     return mod_info(&modlinkage, mip);
49 }