2 #include <sys/socket.h>
3 #include <linux/rtnetlink.h>
8 /* fudge up session rx speed if not set */
10 int plugin_api_version
= PLUGIN_API_VERSION
;
11 static struct pluginfuncs
*f
= 0;
13 int plugin_post_auth(struct param_post_auth
*data
)
15 if (!data
->auth_allowed
)
18 if (data
->s
->rx_connect_speed
)
21 switch (data
->s
->tx_connect_speed
)
24 data
->s
->rx_connect_speed
= 64;
28 data
->s
->rx_connect_speed
= 128;
32 data
->s
->rx_connect_speed
= 256;
39 int plugin_init(struct pluginfuncs
*funcs
)
41 return ((f
= funcs
)) ? 1 : 0;