Commit graph

511 commits

Author SHA1 Message Date
Benjamin Cama
8c4f3bfe79 Add a config option to set the advertised BGP next hop.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-29 12:58:31 +02:00
Benjamin Cama
fd021320ec Add an "hostname" config option.
It is overridden by the -h command line option.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-29 12:54:54 +02:00
Benjamin Cama
8321e71491 Add a cli_bind_address configuration option.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-29 12:54:25 +02:00
Benjamin Cama
d48de5fddd Stop BGP session even when we are master
Probably a bug; introduced by a patch that made only slaves stop their BGP
session.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-29 12:54:00 +02:00
Benjamin Cama
b36141c0c7 Add an option to set source address for a BGP session.
When adding a BGP neighbour, one can set "update-source" (quagga syntax) to the
source IP address that will be used for that session.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-29 12:54:00 +02:00
Benjamin Cama
11ec3c4a24 Remove no more used plugin function names; fixes a crash.
These functions have been for long removed from plugins.h.
Debian sources used an older plugins.h.
l2tpns.c doesn't seem to have been ever fixed in upstream CVS.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-29 12:54:00 +02:00
Benjamin Cama
7e1e91ef98 Call bgp_add/del_route6() in l2tpns.c.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-28 15:01:57 +02:00
Benjamin Cama
59411b8799 Add a nexthop6 config option.
Will be used to set the NEXT_HOP for IPv6 routes, otherwise our address in
ipv6_prefix is used as the next hop.

Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-07-28 15:01:51 +02:00
Brendan O'Dea
d5c6f84271 Import to git from cvs. Remove keywords. 2011-01-27 17:36:01 +11:00
bodea
46d1fa17df Apply patch from Geoffrey D. Bennett to fix retry of control packets. 2011-01-20 12:48:40 +00:00
Brendan O'Dea
e934c096dd Apply patch from Geoffrey D. Bennett to fix retry of control packets. 2011-01-20 12:48:40 +00:00
bodea
448f218ae7 Apply patch from Cyril Elkaim to fix an issue with MacOS. 2010-03-25 05:24:23 +00:00
Brendan O'Dea
97119ee512 Apply patch from Cyril Elkaim to fix an issue with MacOS. 2010-03-25 05:24:23 +00:00
bodea
eb34e8b8b2 Apply patch from Michael O to avoid sending multiple CDNs. 2010-01-09 13:33:41 +00:00
Brendan O'Dea
bab8601f70 Apply patch from Michael O to avoid sending multiple CDNs. 2010-01-09 13:33:41 +00:00
bodea
ac773ac88d Apply MLPPP patch from Muhammad Tayseer Alquoatli, very belatedly, with
thanks.  Changes:
- Handle session shutdown gracefully regarding leaving the bundle (bug that is
  caused when a all session leaves a bundle then another join)
- IP assignment is done only for the first session in the bundle (save IP
  waste for multiple MLPPP sessions)
- Route is being added only for the first session in the bundle (less routes
  on l2tpns system)
- Fix route deletion problem for MLPPP sessions (bug that caused when a
  session leaves a bundle)
- Uniformity of sequence number space satisfied (according to RFC1990)
- Fix reassembling fragmented packets and handling lost fragments (according
  to RFC 1990)
- FragmentatConnection to l2tpns.cvs.sourceforge.net closed by remote host.n
  across N session rather than two)
- Sequence numbers extraction mask has been corrected (bug in extracting
  sequence numbers)
- some clustering support fixes
- Upload/Download statistics has been corrected
- add "kill_timedout_sessions" config option
2009-12-08 14:49:28 +00:00
Brendan O'Dea
845bb1f376 Apply MLPPP patch from Muhammad Tayseer Alquoatli, very belatedly, with
thanks.  Changes:
- Handle session shutdown gracefully regarding leaving the bundle (bug that is
  caused when a all session leaves a bundle then another join)
- IP assignment is done only for the first session in the bundle (save IP
  waste for multiple MLPPP sessions)
- Route is being added only for the first session in the bundle (less routes
  on l2tpns system)
- Fix route deletion problem for MLPPP sessions (bug that caused when a
  session leaves a bundle)
- Uniformity of sequence number space satisfied (according to RFC1990)
- Fix reassembling fragmented packets and handling lost fragments (according
  to RFC 1990)
- FragmentatConnection to l2tpns.cvs.sourceforge.net closed by remote host.n
  across N session rather than two)
- Sequence numbers extraction mask has been corrected (bug in extracting
  sequence numbers)
- some clustering support fixes
- Upload/Download statistics has been corrected
- add "kill_timedout_sessions" config option
2009-12-08 14:49:28 +00:00
bodea
32ab43cf29 don't send interim records before session start (Daryl Tester) 2006-12-18 12:05:36 +00:00
Brendan O'Dea
3bea7b1e3e don't send interim records before session start (Daryl Tester) 2006-12-18 12:05:36 +00:00
bodea
cb031e775d cleanup clash between timeout and session_timout 2006-08-02 13:35:39 +00:00
Brendan O'Dea
fb0d8b5fb6 cleanup clash between timeout and session_timout 2006-08-02 13:35:39 +00:00
bodea
876ad93887 resolve gcc 4.1 warning by changing ip_hash to a union 2006-07-01 14:07:35 +00:00
Brendan O'Dea
edd8999aed resolve gcc 4.1 warning by changing ip_hash to a union 2006-07-01 14:07:35 +00:00
bodea
9bc9ec99e6 add radius_bind_{min,max} options 2006-07-01 12:40:10 +00:00
Brendan O'Dea
e49d6736b5 add radius_bind_{min,max} options 2006-07-01 12:40:10 +00:00
bodea
570e1b2fc2 set acct-disconnect-cause from result code AVP if no disconnect cause AVP is present 2006-06-22 15:30:29 +00:00
Brendan O'Dea
d2f496f603 set acct-disconnect-cause from result code AVP if no disconnect cause AVP is present 2006-06-22 15:30:29 +00:00
bodea
e6bb332ba2 add session/idle timeouts 2006-06-11 12:46:18 +00:00
Brendan O'Dea
65270c4bd2 add session/idle timeouts 2006-06-11 12:46:18 +00:00
bodea
c3633ceaba use %u when logging unsigned values 2006-05-16 06:46:37 +00:00
Brendan O'Dea
789bcd4260 use %u when logging unsigned values 2006-05-16 06:46:37 +00:00
bodea
8f01a9dbf2 update copyright years 2006-05-04 01:01:56 +00:00
Brendan O'Dea
510ae1af5e update copyright years 2006-05-04 01:01:56 +00:00
bodea
241d15a178 remove non-working setuid option 2006-04-27 14:37:27 +00:00
Brendan O'Dea
9fd9a6fba1 remove non-working setuid option 2006-04-27 14:37:27 +00:00
bodea
5e631c6978 add Multilink support from Khaled Al Hamwi 2006-04-27 09:53:49 +00:00
Brendan O'Dea
5faf075c8d add Multilink support from Khaled Al Hamwi 2006-04-27 09:53:49 +00:00
bodea
5dacb3cdf5 only poll clifd if successfully bound 2006-04-23 23:18:30 +00:00
Brendan O'Dea
71f2642774 only poll clifd if successfully bound 2006-04-23 23:18:30 +00:00
bodea
a66c20bf07 interpret "local" direction correctly (as LAC) in disconnect AVPs 2006-04-18 06:00:46 +00:00
Brendan O'Dea
d3280234d1 interpret "local" direction correctly (as LAC) in disconnect AVPs 2006-04-18 06:00:46 +00:00
bodea
b089008c05 add Acct-Terminate-Cause to RADIUS stop records 2006-04-13 11:14:35 +00:00
Brendan O'Dea
1b6a7a95e6 add Acct-Terminate-Cause to RADIUS stop records 2006-04-13 11:14:35 +00:00
bodea
42bf2e312d set source address for DAE responses 2006-04-05 02:13:48 +00:00
Brendan O'Dea
0251304ce2 set source address for DAE responses 2006-04-05 02:13:48 +00:00
bodea
6228957415 set IP_PKTINFO on controlfd for recvfromto 2006-04-05 01:50:33 +00:00
Brendan O'Dea
1c38c685b1 set IP_PKTINFO on controlfd for recvfromto 2006-04-05 01:50:33 +00:00
bodea
eb37aeee8e send nsctl responses back using the correct source address 2006-04-05 01:45:57 +00:00
Brendan O'Dea
a840035219 send nsctl responses back using the correct source address 2006-04-05 01:45:57 +00:00
bodea
995bae51b1 validate source of RADIUS packets 2006-02-17 13:27:07 +00:00