5 /* fudge up session rx speed if not set */
7 char const *cvs_id
= "$Id: setrxspeed.c,v 1.4 2005/10/11 09:04:53 bodea Exp $";
9 int plugin_api_version
= PLUGIN_API_VERSION
;
10 static struct pluginfuncs
*f
= 0;
12 int plugin_post_auth(struct param_post_auth
*data
)
14 if (!data
->auth_allowed
)
17 if (data
->s
->rx_connect_speed
)
20 switch (data
->s
->tx_connect_speed
)
23 data
->s
->rx_connect_speed
= 64;
27 data
->s
->rx_connect_speed
= 128;
31 data
->s
->rx_connect_speed
= 256;
38 int plugin_init(struct pluginfuncs
*funcs
)
40 return ((f
= funcs
)) ? 1 : 0;