52fcf4a1670398e16c23668fa33d2c59576fc76d
5 /* fudge up session rx speed if not set */
7 int plugin_api_version
= PLUGIN_API_VERSION
;
8 static struct pluginfuncs
*f
= 0;
10 int plugin_post_auth(struct param_post_auth
*data
)
12 if (!data
->auth_allowed
)
15 if (data
->s
->rx_connect_speed
)
18 switch (data
->s
->tx_connect_speed
)
21 data
->s
->rx_connect_speed
= 64;
25 data
->s
->rx_connect_speed
= 128;
29 data
->s
->rx_connect_speed
= 256;
36 int plugin_init(struct pluginfuncs
*funcs
)
38 return ((f
= funcs
)) ? 1 : 0;