Commit Graph

14 Commits

Author SHA1 Message Date
Alexander Couzens 38ec8e5e5b l2tpd_data: add conf_fsm as into 'struct l2tpd_connection' 2016-11-05 18:46:34 +01:00
Alexander Couzens 47877011c7 l2tpd_packet: add backref for session
I'vnt't found a solution using container_of() to get the connection for a session.
add a direct pointer to have a direct reference. Saves a lot lookups using the connection id every time
2016-11-05 18:46:34 +01:00
Alexander Couzens 21ee9718d2 l2tpd_data: start with 1 as session id
session with 0 is special and used for discovery
2016-11-05 18:46:34 +01:00
Alexander Couzens 37003356bb l2tpd_data/l2tpd_sess_alloc: setup fsm for session 2016-11-05 18:46:34 +01:00
Alexander Couzens e44b1ae254 l2tpd_data: add ccid to fsm id
allows to identifiy the fsm instances
2016-11-05 18:46:34 +01:00
Alexander Couzens c4829beac5 l2tpd_data: add l2c as private data to fsm 2016-11-05 18:46:34 +01:00
Alexander Couzens 83f08bc39a l2tpd_data: rename variable `l2tpd_instance inst -> l2tp` to conform to the rest of the source 2016-11-05 18:46:34 +01:00
Alexander Couzens 9586b78d02 l2tpd_fsm: make fsm itself and states public 2016-11-05 18:46:34 +01:00
Alexander Couzens 1a2dc58e38 fixme: use local version until osmo_sockaddr_equal is upstream
work around old libosmocore version
2016-11-05 18:46:34 +01:00
Alexander Couzens bb5b5f5b3b l2tpd_data: init l2connetion fsm 2016-11-05 18:46:34 +01:00
Alexander Couzens 775c56353f l2tpd_cc_find_by_sockaddr: add sockaddr length to function signature
osmo_sockaddr_equal requires an sockaddr length
2016-11-05 18:46:34 +01:00
Alexander Couzens 486b7acbfc l2tp_data: add l2tpd_cc_find_by_sockaddr() 2016-11-05 18:46:34 +01:00
Alexander Couzens a3ea0eef15 WIP: l2tpd: make it compile again
fix all compiler warnings & errors but -Wunsed-function
2016-11-05 18:46:34 +01:00
Harald Welte a8c771859b WIP l2tpd: More progress on the implementation
still far from being complete, but architecture is slowly getting there.

We now have data structures for bulk AVP parsing and allocate + fill
local data structures for connections and sessions.
2016-10-17 02:11:32 +02:00