5 /* fudge up session rx speed if not set */
7 char const *cvs_id
= "$Id: setrxspeed.c,v 1.2 2004-11-09 08:05:03 bodea Exp $";
9 int __plugin_api_version
= PLUGIN_API_VERSION
;
10 static struct pluginfuncs
*p
= 0;
12 int plugin_post_auth(struct param_post_auth
*data
)
14 if (!data
->auth_allowed
) return PLUGIN_RET_OK
;
16 if (!data
->s
->rx_connect_speed
)
18 switch (data
->s
->tx_connect_speed
)
21 data
->s
->rx_connect_speed
= 64;
24 data
->s
->rx_connect_speed
= 128;
27 data
->s
->rx_connect_speed
= 256;
34 int plugin_init(struct pluginfuncs
*funcs
)
36 return ((p
= funcs
)) ? 1 : 0;