Commit Graph

26 Commits

Author SHA1 Message Date
Alexander Couzens 742cefd877 l2tpd: set l2i->next_l_ccid to 1
0 is reserved for discovery. so 0 should never assigned to a control connection
2016-11-05 18:46:34 +01:00
Alexander Couzens 666401c275 l2tp_instance: setsockopt to the same tos value of bsc 2016-11-05 18:46:34 +01:00
Alexander Couzens e46a88b1c7 l2tpd.c: move packet handling out of l2tpd.c into l2tpd_packet.c 2016-11-05 18:46:34 +01:00
Alexander Couzens 14b0647687 l2tpd: fixup dont lookup l2tp_rcvmsg over ip
forgotten function signature
2016-11-05 18:46:34 +01:00
Alexander Couzens b41b85da8f l2tpd: dont lookup l2tp_rcvmsg over ip 2016-11-05 18:46:34 +01:00
Alexander Couzens 4193842565 l2tpd: save sockaddr over msg->dst into l2c->remote.ss 2016-11-05 18:46:34 +01:00
Alexander Couzens f1f53f8299 l2tpd/rx_scc_rq: use msgb_data to get the correct data 2016-11-05 18:46:34 +01:00
Alexander Couzens 8eaf1a5a33 l2tpd: add transmit / sendto function 2016-11-05 18:46:34 +01:00
Alexander Couzens 149a333a10 l2tpd/l2tp_ip_read_cb: use msgb_data for recvfrom and set msgb pointer to l2h=l2tp, l1h=ip 2016-11-05 18:46:34 +01:00
Alexander Couzens 8d08b49b7d l2tpd/rx_scc_rq: fix pseudowire cap check by using htons() 2016-11-05 18:46:34 +01:00
Alexander Couzens c3d682fccf l2tpd/msgb_avp_parse: fix pointer arithmethic and length checks 2016-11-05 18:46:34 +01:00
Alexander Couzens 63c3186918 l2tpd: use l2tp_rcvmsg_control() must use msgb_data instead of msgb_l2tph 2016-11-05 18:46:34 +01:00
Alexander Couzens 28edd890b2 l2tpd: increase tailroom to 1500 2016-11-05 18:46:34 +01:00
Alexander Couzens 2f6a0ee5d4 l2tpd: register fsms 2016-11-05 18:46:34 +01:00
Alexander Couzens 56521e1410 l2tpd: add logging to stderr 2016-11-05 18:46:34 +01:00
Alexander Couzens bfe924c91f l2tpd: init talloc and use it for l2tpd_instance l2i 2016-11-05 18:46:34 +01:00
Alexander Couzens cac30c474c l2tpd: move ofd setup before osmo_sock_init_ofd() 2016-11-05 18:46:34 +01:00
Alexander Couzens 047e96a805 init logging system 2016-11-05 18:46:34 +01:00
Alexander Couzens ea516e972d l2tpd: fix compiler errors and misused format string 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 002f9e06f4 lookup the l2tpd connection using the src ip 2016-11-05 18:46:34 +01:00
Alexander Couzens f1c1de8dd0 generalize l2tp_rcvmsg: dont to any difference between ip and udp
this should handle the upper layer
2016-11-05 18:46:34 +01:00
Alexander Couzens 3563192ccb l2tp_data: give l2tp_recvmsg socketaddr of the incoming packet 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
Harald Welte d450c71498 WIP: L2TP daemon to interoperate with Ericsson SIU 2016-10-14 16:47:46 +02:00