2 #include <linux/rtnetlink.h>
3 #include <netinet/ip6.h>
9 /* fudge up session rx speed if not set */
11 int plugin_api_version
= PLUGIN_API_VERSION
;
12 static struct pluginfuncs
*f
= 0;
14 int plugin_post_auth(struct param_post_auth
*data
)
16 if (!data
->auth_allowed
)
19 if (data
->s
->rx_connect_speed
)
22 switch (data
->s
->tx_connect_speed
)
25 data
->s
->rx_connect_speed
= 64;
29 data
->s
->rx_connect_speed
= 128;
33 data
->s
->rx_connect_speed
= 256;
40 int plugin_init(struct pluginfuncs
*funcs
)
42 return ((f
= funcs
)) ? 1 : 0;