Commit graph

454 commits

Author SHA1 Message Date
Samuel Thibault
2229ac6a8a RA: Fix announcing on the right tunnel
We were previously just announcing on the last tunnel looked at in the loop
much above.
2024-01-18 11:53:00 +01:00
Samuel Thibault
e6a933153d RA: announce after the actions which may be dropping the session
It's useless to announce RA just before dropping the session.
2024-01-18 10:13:00 +01:00
Samuel Thibault
1d19366e15 typo 2024-01-18 02:39:32 +01:00
sthibaul
7ddeea4205 Merge branch 'data_out_warn' into 'master'
Warn about tunnel buffer being full only once per second

See merge request l2tpns/l2tpns!24
2024-01-18 01:02:56 +00:00
Samuel Thibault
05772e2295 Add periodic RA sends
The RFC indeed say that we should send them periodically.  We were
previously only sending them along LCP echo replies, but echo requests
are typically sent only when there is no trafic, which RA need to be
sent even when there is trafic.
2023-12-04 19:41:57 +01:00
Samuel Thibault
3667bdfe80 Also clamp MSS on IPv6
Some routers erratically drop "Packet too big" icmp messages, and PMTU
discovery then doesn't work. We can however easily clamp MSS on IPv6 too.
2023-11-05 17:21:14 +01:00
Dominique Martinet
1a89fc3f63 initippool: drop redundant memset
The size of the memset was just wrong, but the data has already been
zeroed in initdata so we can just remove it.
# This is the commit message #2:

# squash! initippool: fix initialization of ip_address_pool
2023-08-03 06:10:27 +09:00
Samuel Thibault
7fd81113e6 Warn about tunnel buffer being full only once per second
Otherwise, when the network output bandwidth is full, we additionally
fill the disk with logs.
2023-04-30 16:31:55 +02:00
Samuel Thibault
8e7bfa9a77 Add mp_mrru option
Some equipments seem not able to actually put options in Configure-Reject
messages, so we then have to disable MRRU by hand.
2023-02-07 12:45:29 +01:00
Dominique Martinet
af92de5eeb processudp: fix memory leak
send/recvchalresponse should be freed before early returns in the function,
as there are code paths where they would be allocated before these.

Note free is no-op on null pointer so checking for non-null value is useless.

Reported-by: Coverity#375342
2022-11-05 21:18:36 +09:00
Samuel Thibault
4d906e595d Fix liveness of buf
So that domain can point to it.
2022-11-03 13:27:54 +01:00
Samuel Thibault
233f7e8526 Drop useless test 2022-11-03 11:49:48 +01:00
Samuel Thibault
31dedbbe66 Use 64bit counters for accounting
Otherwise with 5-minute reporting we overflow with >= ~100Mbps.

Fixes #12
2022-01-24 00:40:26 +01:00
Dominique Rousseau
7c715f16fc fix bgp_add_route with bind_address ( fix #9 ) 2021-10-15 21:55:31 +02:00
Fernando ALVES
2d6fe53a7a Fix infinite loop error 'Unknown AVP vendor' 2021-01-17 22:19:01 +01:00
Sebastien Badia
745de1082a
(maint) Fixes common spelling error
* minumum minimum
* remaing remaining
* Mismaching Mismatching
2020-04-28 10:53:18 +02:00
fendo
0f20bfda6a Add cluster_port parameter for Multiple clusters 2017-05-27 00:09:19 +02:00
fendo
07e1df5b92 Add of the ppp_keepalive option. 2015-09-22 23:19:01 +02:00
fendo
9c77145f71 Add of the RDNSS option to ICMPv6 Router Advertisement (RA). 2014-10-02 00:28:57 +02:00
fendo
97bada26aa Fix: IPv6 prefix routing on slave cluster 2014-09-21 13:59:08 +02:00
fendo
8d94f2020d new feature: If the user attribute "Framed-IPv6-Address" is defined then the ICMPv6_RA advertise this IPv6 address.
Fix: Incorrect delegation of IPv6 prefixes when multiple of 4 bits (nibble) (eg: /44, /52 ...).
2014-09-18 18:16:21 +02:00
fendo
e98fe68174 Added ability to define up to 5 IPv6 prefix delegation by user 2014-09-16 17:34:39 +02:00
fendo
2a385573a6 Fix cluster slave; no add the ipv6 route address (/128) if included in the delegated prefix. 2014-09-12 18:21:26 +02:00
fendo
b3f40f41f7 Add DHCPv6 functionality. 2014-09-11 16:19:57 +02:00
fendo
786a8c4546 Fix: remove old IPV6 routes on master 2013-12-10 23:17:21 +01:00
fendo
6b70732490 add attribut >no_throttle_local_IP 2013-11-12 21:33:42 +01:00
fendo
20ca0ebdd3 Fix: throttle ipv6 out. 2013-09-21 14:36:07 +02:00
fendo
aa737c197c Fix: remove old IPV6 routes on slave 2013-09-21 12:51:32 +02:00
fendo
f4e05b93e0 Fix: compiling Warning, dpkg-buildflags ... 2013-09-17 00:04:00 +02:00
fendo
ecdddd6065 * Enabled hardened build flags, thanks Moritz Muehlenhoff (closes: #657846)
* Packaging updates
  * Move to 3.0 (native) source format
  * Bump DH compat level to 8
* Fix ordering of stdio.h/syslog.h includes (closes: #707385)
* Create accounting_dir in init script if necessary (closes: #418156)
* Bump Standards-Version to 3.9.4.0
  * Add build-arch/build-indep targets to debian/rules
* Fix: compiling Warning
2013-09-16 18:22:57 +02:00
fendo
26a2025a1b Fix: wheezy warning compilation 2013-09-16 15:01:04 +02:00
fendo
959cce2660 Fixing of the Endpoint-Discriminator has a unique value. 2013-06-05 17:00:52 +02:00
fendo
91fc2ec13b Fix: loop parse multi_hostanme 2013-05-22 22:23:56 +02:00
fendo
fa1972a645 Fix: loop parse multi_hostanme 2013-05-22 20:49:17 +02:00
fendo
9c1869ccb1 Adding the possibility to set multiple hostname. 2013-05-21 11:42:48 +02:00
fendo
8c6b4f04b0 Fix: send SCCCN requested challenge response 2013-04-29 17:13:42 +02:00
fendo
7fd4346bbb add accounting parameter account_all_origin 2013-04-24 22:29:36 +02:00
fendo
1e722029bc Fix service_name management and add pppoe_only_equal_svc_name parameter 2013-04-09 17:03:00 +02:00
fendo
137bcc9981 Adding the possibility to listening multiple IP L2TP tunnels. 2013-03-06 22:18:32 +01:00
fendo
ec4f5a95de Fix Warning: dereferencing type-punned pointer will break strict... 2013-02-26 01:00:46 +01:00
fendo
9e78f1af54 Fix: Tunnel creation does not work when the length of the hostname is odd. (revert fix: Add a uint16_t control buffer type, as a union) 2013-02-26 00:28:43 +01:00
fendo
ec1507a6c2 Add param disable no spoof 2013-02-11 00:15:36 +01:00
fendo
b85ea86670 small performance improvement in download (internet -> customer) 2013-02-07 00:00:37 +01:00
fendo
9fb78ffe6a Disable sending HELLO message for Apple compatibility 2013-01-15 15:22:43 +01:00
fendo
1f48c2907f Fix: No RADIUS Stop message sent (regression due to the patch to avoid sending multiple CDNs) 2013-01-14 00:04:56 +01:00
fendo
caa9662496 Fix: inverted delete/add routes in cluster mode 2013-01-13 23:08:38 +01:00
fendo
d547c00f76 rename attribut interface pppoe to bind 2013-01-08 23:24:31 +01:00
fendo
11996ba414 Add PPPOE-SERVER functionality 2013-01-08 10:50:57 +01:00
fendo
ddffeb1ceb Authorize to change the source IP of the tunnels l2tp 2012-12-26 11:13:09 +01:00
fendo
f9243ffec5 Add tundevicename configuration option 2012-12-21 14:13:00 +01:00