diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-10-28 21:37:24 +0100 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-10-29 21:40:31 +0400 |
commit | 46ecf0e5867ea88cd9ec184b6731efbadf887392 (patch) | |
tree | eb2096ed2f55153707435524ef806f6b42f9992d /accel-pppd/ctrl | |
parent | f2411cc37b8fa5f0fe78107069b77cee761d2e23 (diff) | |
download | accel-ppp-46ecf0e5867ea88cd9ec184b6731efbadf887392.tar.gz accel-ppp-46ecf0e5867ea88cd9ec184b6731efbadf887392.zip |
l2tp: No iprange check for locally created tunnels
There's no need to check for iprange when creating a new tunnel
upon administrator's request.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/ctrl')
-rw-r--r-- | accel-pppd/ctrl/l2tp/l2tp.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index e14bab8..e018e5b 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -3786,12 +3786,6 @@ static int l2tp_create_tunnel_exec(const char *cmd, char * const *fields, return CLI_CMD_SYNTAX; } - if (iprange_client_check(peer.sin_addr.s_addr) < 0) { - cli_sendv(client, "peer address %s out of IP range\r\n", - fields[peer_indx]); - return CLI_CMD_INVAL; - } - conn = l2tp_tunnel_alloc(&peer, &host, 3, lns_mode, 0, hide_avps); if (conn == NULL) { cli_send(client, "tunnel allocation failed\r\n"); |