summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/l2tp/l2tp.h
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2014-04-08 22:55:28 +0200
committerDmitry Kozlov <xeb@mail.ru>2014-04-11 06:47:27 +0400
commit634c92cf8acf9e8a0e915c82bb114a791850348a (patch)
treeb166fc485d9340ebb1039825f7d91c5f2c2f1321 /accel-pppd/ctrl/l2tp/l2tp.h
parent221f2f9ab55dcdc7028669e75f619ba87503a8aa (diff)
downloadaccel-ppp-634c92cf8acf9e8a0e915c82bb114a791850348a.tar.gz
accel-ppp-634c92cf8acf9e8a0e915c82bb114a791850348a.zip
l2tp: drop tunnel/session messages from send queue upon disconnection
Add a per session send queue. Messages sent by a session are added to both tunnel and session queues. This allows sessions to remove their unsent messages from tunnel's send queue before they disconnect. The same approach is used for tunnels. Before disconnecting, they clear their send queue to avoid sending useless messages. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/ctrl/l2tp/l2tp.h')
-rw-r--r--accel-pppd/ctrl/l2tp/l2tp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/l2tp/l2tp.h b/accel-pppd/ctrl/l2tp/l2tp.h
index 9d4dd2c..12a2dbf 100644
--- a/accel-pppd/ctrl/l2tp/l2tp.h
+++ b/accel-pppd/ctrl/l2tp/l2tp.h
@@ -64,6 +64,7 @@ struct l2tp_attr_t
struct l2tp_packet_t
{
struct list_head entry;
+ struct list_head sess_entry;
struct sockaddr_in addr;
struct l2tp_hdr_t hdr;
struct list_head attrs;