diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2014-04-08 22:55:28 +0200 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2014-04-11 06:47:27 +0400 |
commit | 634c92cf8acf9e8a0e915c82bb114a791850348a (patch) | |
tree | b166fc485d9340ebb1039825f7d91c5f2c2f1321 /accel-pppd/ctrl/l2tp/l2tp.h | |
parent | 221f2f9ab55dcdc7028669e75f619ba87503a8aa (diff) | |
download | accel-ppp-xebd-634c92cf8acf9e8a0e915c82bb114a791850348a.tar.gz accel-ppp-xebd-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.h | 1 |
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; |