diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2016-01-03 23:12:12 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-01-03 23:12:16 +0300 |
commit | 683fcf64fa9b90efd009d47a7ca500459adf419d (patch) | |
tree | c1abc26f6dfbea8e70429b31dfdbe3b0cfb22b30 /accel-pppd/radius/radius_p.h | |
parent | 0ba262d4bf906b8fd6b724264c69933309bedd74 (diff) | |
download | accel-ppp-683fcf64fa9b90efd009d47a7ca500459adf419d.tar.gz accel-ppp-683fcf64fa9b90efd009d47a7ca500459adf419d.zip |
radius: implemented handling of Framed-Route attribute
Framed-Route has following syntax: Framed-Route=address[/mask] [gateway]
If gateway is not specified then route would be attached to session interface.
Diffstat (limited to 'accel-pppd/radius/radius_p.h')
-rw-r--r-- | accel-pppd/radius/radius_p.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/accel-pppd/radius/radius_p.h b/accel-pppd/radius/radius_p.h index cf7cbc84..0e1789fd 100644 --- a/accel-pppd/radius/radius_p.h +++ b/accel-pppd/radius/radius_p.h @@ -25,6 +25,13 @@ struct radius_auth_ctx { char **reply_msg; }; +struct framed_route { + in_addr_t dst; + int mask; + in_addr_t gw; + struct framed_route *next; +}; + struct radius_pd_t { struct list_head entry; struct ap_private pd; @@ -54,6 +61,8 @@ struct radius_pd_t { int attr_state_len; int termination_action; + struct framed_route *fr; + struct radius_auth_ctx *auth_ctx; struct list_head plugin_list; |