Benjamin Cama
c23b9c14ab
Correctly form the delete route/route6 request.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-20 18:24:54 +02:00
Benjamin Cama
31fd6f1055
Remove the netlink code to get the tun if index.
...
It only worked for kernel >= 2.6.33. Use if_nametoindex() instead, which made
me include net/if.h in place of linux/if.h. Also, fix the RTM_SETLINK use which
should really be RTM_NEWLINK with correct parameters.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-19 19:23:27 +02:00
Benjamin Cama
1b372e5d46
Fix a stray comma, and replace existing routes.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-17 17:16:30 +02:00
Benjamin Cama
464a2bb072
Since 7c47438 we can remove math.h.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-17 02:28:33 +02:00
Benjamin Cama
1455a9c9bb
Make routset()/route6set() use netlink.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-17 02:23:13 +02:00
Benjamin Cama
7c474381d4
Switch from masks to CIDR globally for IPv4.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-17 01:41:54 +02:00
Benjamin Cama
e6bf06aa1b
Simplify route attribute appending.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-17 00:45:27 +02:00
Benjamin Cama
4344f5e9c7
Better tun device name length handling.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-17 00:23:25 +02:00
Benjamin Cama
8f944eeb21
Fix wrong rta type.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-16 19:04:08 +02:00
Benjamin Cama
1df1b625a8
netlink: Better error handling.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-16 18:45:53 +02:00
Benjamin Cama
7bdb42fe54
Add netlink fd polling.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-16 17:19:42 +02:00
Benjamin Cama
5cd5238b2f
Remove all acknoledgement stuff. Still doesn't work.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-16 16:42:13 +02:00
Benjamin Cama
ba87a9d874
Commiting the rework I have done until now.
...
But I will remove the ack stuff, too complicated.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-16 16:06:33 +02:00
Benjamin Cama
c23922ce7c
Netlink bugfixes.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-16 00:12:23 +02:00
Benjamin Cama
7aa8cc3dc0
Further netlink implementation. Not working yet.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-15 22:59:13 +02:00
Benjamin Cama
c7b02a0927
First netlink functions.
...
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
2011-08-14 22:56:35 +02:00
bodea
46d1fa17df
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
bodea
eb34e8b8b2
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
bodea
32ab43cf29
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
bodea
876ad93887
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
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
bodea
e6bb332ba2
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
bodea
8f01a9dbf2
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
bodea
5e631c6978
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
bodea
a66c20bf07
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
bodea
42bf2e312d
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
bodea
eb37aeee8e
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
bodea
810e88371a
correct addition of single IP to pool
2006-01-19 20:55:03 +00:00
bodea
b2bd965594
send configured magic-no in LCP EchoReq when LCP is opened
2005-12-20 04:57:16 +00:00
bodea
31e24f76ce
fix session MRU, tunnel MTU
2005-12-19 06:08:42 +00:00
bodea
e4ea4838f8
drop backtrace
2005-12-14 02:19:15 +00:00
bodea
fc94b60b05
- Reject unknown/unconfigured protocols on the master.
...
- Sanity check MRU before using in ppp_code_rej, protoreject.
2005-12-07 05:21:37 +00:00
bodea
4bbf91e608
set MTU on tunnel interface so the kernel will re-fragment large packets to within MRU
2005-11-17 07:35:35 +00:00
bodea
2dd8d794c9
fix checksum recalc
2005-11-17 06:46:24 +00:00
bodea
728b8416cf
layer 4 info implies !frag
2005-11-14 21:08:30 +00:00
bodea
0dc8fc58d5
fix fragment handling in ip_filter
2005-11-14 08:38:02 +00:00
bodea
4caf4199d1
- Reset restart counters correctly.
...
- Reset timers on sending ConfigReq.
- Only send one RADIUS Start record, even if IPCP is restarted.
2005-11-04 14:41:50 +00:00
bodea
fcad08f613
fix LCP Echo frequency
2005-10-18 07:19:28 +00:00
bodea
f6b56a0f4d
add Cisco-AVPairs to RADIUS accounting records via plugin_radius_account
2005-10-11 09:04:53 +00:00
bodea
8604240114
don't send tunnel HELLO when there are pending control messages
2005-10-11 07:06:56 +00:00