Commit Graph

293 Commits

Author SHA1 Message Date
Alexander Couzens 75436421a4 l2tpd_packet: complete l2tp control header
missing session id and incorrect lenght / version field
2016-10-24 06:26:06 +02:00
Alexander Couzens b201ef2f02 l2tpd_packet/digest_avp_update: fix search AVP digest 2016-10-24 06:25:31 +02:00
Alexander Couzens f6a71518cc l2tpd_packet/digest_avp_update: use msgb_data / msgb_lenght 2016-10-24 06:24:51 +02:00
Alexander Couzens e1aa3aaa1c l2tpd: l2tp_msgb_alloc(): sets now l2h -> msg->data 2016-10-24 06:23:55 +02:00
Alexander Couzens 6203509f9d l2tpd_fsm: use priv instead of data
data contains the msgbuffer
2016-10-24 06:23:07 +02:00
Alexander Couzens 4df20bcdcf l2tpd_fsm: sent out SCCRP 2016-10-24 05:38:07 +02:00
Alexander Couzens 8d4c3e0a52 l2tpd_packet: return 0 on success in l2tp_msgb_tx() 2016-10-24 05:37:52 +02:00
Alexander Couzens 387ab48db2 l2tpd_packet: set msg->dst = l2c
when using a session this is an expensive call
2016-10-24 05:37:11 +02:00
Alexander Couzens 8ff4d0b5de l2tpd_packet: use l2c/l2s instead of ls lc as everywhere else in the tree 2016-10-24 05:21:03 +02:00
Alexander Couzens a768dfca4e l2tpd_packet: make tx function public
will be used by the fsm
2016-10-24 05:19:37 +02:00
Alexander Couzens dd028bfbd3 l2tpd.c: move packet handling out of l2tpd.c into l2tpd_packet.c 2016-10-24 05:19:37 +02:00
Alexander Couzens 0eb0b71530 l2tpd: fixup dont lookup l2tp_rcvmsg over ip
forgotten function signature
2016-10-24 04:23:22 +02:00
Alexander Couzens 3df97f2111 l2tpd: dont lookup l2tp_rcvmsg over ip 2016-10-24 04:20:10 +02:00
Alexander Couzens a569b04d5c l2tpd: save sockaddr over msg->dst into l2c->remote.ss 2016-10-24 04:20:10 +02:00
Alexander Couzens d67d2a6eaf l2tpd/rx_scc_rq: use msgb_data to get the correct data 2016-10-24 04:20:10 +02:00
Alexander Couzens 0feedc3623 l2tpd_data: add l2c as private data to fsm 2016-10-24 04:20:10 +02:00
Alexander Couzens f1d399b717 l2tpd: add transmit / sendto function 2016-10-24 04:20:10 +02:00
Alexander Couzens 36f2a7f1dd l2tpd/l2tp_ip_read_cb: use msgb_data for recvfrom and set msgb pointer to l2h=l2tp, l1h=ip 2016-10-24 04:20:10 +02:00
Alexander Couzens ffca1f240b l2tpd/rx_scc_rq: fix pseudowire cap check by using htons() 2016-10-24 04:20:10 +02:00
Alexander Couzens 325c8858fc l2tpd/msgb_avp_parse: fix pointer arithmethic and length checks 2016-10-24 04:20:10 +02:00
Alexander Couzens 73cff03662 l2tpd: use l2tp_rcvmsg_control() must use msgb_data instead of msgb_l2tph 2016-10-24 04:20:10 +02:00
Alexander Couzens 62bd1d631c l2tpd: increase tailroom to 1500 2016-10-24 04:20:10 +02:00
Alexander Couzens 76dc1edfe6 l2tpd: correct value of S_BIT (sequence bit) 2016-10-24 04:20:10 +02:00
Alexander Couzens a349490d0c l2tpd_data: rename variable `l2tpd_instance inst -> l2tp` to conform to the rest of the source 2016-10-24 04:20:10 +02:00
Alexander Couzens 8cb31473ba l2tpd: register fsms 2016-10-24 04:20:10 +02:00
Alexander Couzens 43d10dd7dd l2tpd: add logging to stderr 2016-10-24 04:20:10 +02:00
Alexander Couzens 290e88eb59 l2tpd/Makefile: add EXTRA_CFLAGS 2016-10-24 04:20:10 +02:00
Alexander Couzens 6339e6a038 l2tpd: init talloc and use it for l2tpd_instance l2i 2016-10-24 04:20:10 +02:00
Alexander Couzens 6cd77eb449 l2tpd: move ofd setup before osmo_sock_init_ofd() 2016-10-24 04:20:10 +02:00
Alexander Couzens 0a6dd1b1f9 init logging system 2016-10-24 04:20:10 +02:00
Alexander Couzens d461968d7a l2tpd_fsm: make fsm itself and states public 2016-10-24 04:20:10 +02:00
Alexander Couzens 07702774ec l2tpd: fix compiler errors and misused format string 2016-10-24 04:20:09 +02:00
Alexander Couzens 0dfe18c7bd fixme: use local version until osmo_sockaddr_equal is upstream
work around old libosmocore version
2016-10-24 04:20:09 +02:00
Alexander Couzens 3a566f2b05 lookup the l2tpd connection using the src ip 2016-10-24 04:20:09 +02:00
Alexander Couzens 0e71714f7f generalize l2tp_rcvmsg: dont to any difference between ip and udp
this should handle the upper layer
2016-10-24 04:20:09 +02:00
Alexander Couzens 425cef7824 l2tpd_data: init l2connetion fsm 2016-10-24 04:20:09 +02:00
Alexander Couzens f79af9629b l2tpd_cc_find_by_sockaddr: add sockaddr length to function signature
osmo_sockaddr_equal requires an sockaddr length
2016-10-24 04:20:09 +02:00
Alexander Couzens 11f28c40a1 l2tp_data: give l2tp_recvmsg socketaddr of the incoming packet 2016-10-24 04:19:24 +02:00
Alexander Couzens e0524720a3 l2tp_data: add l2tpd_cc_find_by_sockaddr() 2016-10-24 04:19:21 +02:00
Alexander Couzens 47bdff2570 WIP: l2tpd: make it compile again
fix all compiler warnings & errors but -Wunsed-function
2016-10-18 16:11:22 +02: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
Harald Welte d450c71498 WIP: L2TP daemon to interoperate with Ericsson SIU 2016-10-14 16:47:46 +02:00
Harald Welte a5e825505c initial import of E/// information on SIU 2016-07-18 09:05:19 +02:00