Commit Graph

69 Commits (3b24b69513b3cdee6ed03bb04fd0cc78588967d6)

Author SHA1 Message Date
Ryan Tharp 3b24b69513 TunEndpoint::ObtainAddrForIP(), identity tun range better, actually return revdns for tunmapaddrs, make in-addr.arpa matching smarter, actually send 404s, additional unit test 6 years ago
Jeff Becker d3278946f2
ipv4 bogon checking 6 years ago
cathugger ca01daa89a
ip: support DCCP and UDP-Lite, TCP chksum twx; tun: more filtering 6 years ago
cathugger d0c35803a5
tun+ip: filter packets at destination, drop instead of truncating 6 years ago
cathugger 71c9965471
ip: code cleanups and compatibility improvements
do not assume that packets come with address zero-ed, older clients don't do that.
they don't modify checksum either, therefore we should be able to get correct checksum if we use deltachksum with old and new addresses.
6 years ago
cathugger e1c7d8a696 some tweaks and fixups 6 years ago
cathugger 4971fae171 uint32_t byte ordering type safety 6 years ago
Jeff Becker aa988a6fa4
Merge remote-tracking branch 'cathugger/master' 6 years ago
cathugger 05e6c31238 ip: some fixes and tweaks 6 years ago
Jeff Becker 32a028f6d8
Merge remote-tracking branch 'cathugger/master' 6 years ago
Jeff Becker cbfc73515e
fix zeroing of addresses, put it in the right place 6 years ago
cathugger 0f8e0e9d58 tun: fix "fix "clear src/dst addresses and checksum before sending""
correct dst address is required for FlushSend to work, so do IP address and checksum null'ing there.
dang myself.
6 years ago
cathugger 4f7ae52cad tun: fix "clear src/dst addresses and checksum before sending"
clearing of addresses and checksum was put in wrong place, so it null'd everything before writing to tun interface.
damnit jeff.
6 years ago
cathugger 2f4b0fbda6 ip: use delta TCP checksum calculation, don't recalculate ICMP checksum 6 years ago
cathugger 4cba59f3c4 tun+ip: clarify what happens where 6 years ago
Jeff Becker eb9150431f
make it compile 6 years ago
Jeff Becker 6d7d6f6efa
clear src/dst addresses and checksum before sending (infoleak) 6 years ago
despair86 3c13101beb clang-format 6 years ago
despair86 457d6fbaf6 rebase conflict 6 years ago
despair86 ca0d09142a Finally put together some skeletal TUN code for NT
up next: debugging the windows client code
stretch goal: prototype hosting a full masternode on Windows Server (still _highly_ experimental when it _does_ appear)
6 years ago
Ryan Tharp 6738fcaa6a
make sure iptracker is configured on start 6 years ago
Ryan Tharp a0082e95bb change dll from tunEndpoint to router hidden service context, const some unchanging ptrs, use llarp::Addr more 6 years ago
Ryan Tharp 4b3b09736b Merge branch 'master' of https://github.com/loki-project/loki-network 6 years ago
despair86 9fdde65798 make bencode ILP32/LLP64 clean (long is 32 bits outside of unix!)
actually open new RCs in binary mode
clang-format
win32 skeleton code for tun (still working on the guts)
6 years ago
despair86 7f809eb53b fix windows build 6 years ago
Ryan Tharp 4cc482764d clang format 6 years ago
Ryan Tharp 058ed4d4ea Merge branch 'master' of https://github.com/neuroscr/loki-network 6 years ago
Jeff e50cbf5acb Merge branch 'master' of ssh://github.com/loki-project/loki-network 6 years ago
Jeff Becker 138c222a1a
dns port configurable at compile time (make this configurable on runtime plz) 6 years ago
Ryan Tharp 79d61dedc3 use new llarp::Addr based init 6 years ago
Jeff d6463bf8de Merge branch 'master' of ssh://github.com/loki-project/loki-network 6 years ago
Jeff 52da002488 comit 6 years ago
Jeff Becker 8a4b2e97a5
add lint target for makefile using clang tidy
run make format
6 years ago
Ryan Tharp 0ad4f43fe5 header clean up and clang-format 6 years ago
Ryan Tharp 31c89fc9f8 start of nameresolver config key, actually inform the dns tracker of tun gw ip, some pre-ipv6 work, attempting some endian fixes 6 years ago
Ryan Tharp 2b2e0007fa active DNS relay (server/client) in tun interface 6 years ago
Jeff Becker 44eeda3041
fix ip mapping for new addresses so they don't use premapped addresses 6 years ago
Jeff Becker a71d5f84bb
reduce log level 6 years ago
Jeff Becker ebe30e81c9
try unscrewing things up 6 years ago
Jeff Becker 0c1e22650e
try calcuating tcp checksums right
try tracking convo tags correctly
6 years ago
Jeff Becker 1471e90fb5
intro handover 6 years ago
Jeff Becker 9ee7275a02
decrypt frames correctly and set return address 6 years ago
Jeff 689668d892 fix osx build 6 years ago
Jeff Becker 9ffcf66e58
more checks less logging 6 years ago
Jeff Becker 0945275fd5
make it compile 6 years ago
Jeff Becker 9ed3da1671
correctly map addresses 6 years ago
Jeff Becker 8114f63e70
use queues 6 years ago
Jeff Becker 4f691b8974
make tun write correct number of bytes
try doing correct ip checksum and for upper layers that need it too

supported right now are icmp, tcp, and udp. more will come later
probably.
6 years ago
Jeff Becker 354df88367
more ip endpoint fixes
spam dht with lookups less
6 years ago
Jeff Becker 6986f04418
basic router profiling and fix ip rewrite 6 years ago