Commit Graph

30 Commits (273270916ea33b096753c5ad316f46a8268761bd)

Author SHA1 Message Date
Stephen Shelton 273270916e
The Great Wall of Blame
This commit reflects changes to clang-format rules. Unfortunately,
these rule changes create a massive change to the codebase, which
causes an apparent rewrite of git history.

Git blame's --ignore-rev flag can be used to ignore this commit when
attempting to `git blame` some code.
4 years ago
Rick V b4d6f89452
try extracting dns bind addr from INI on windows 4 years ago
Jason Rhinelander 2e17542028 Don't include net/if.h to help xenial
Loading both net/if.h and linux/if.h on xenial breaks compilation
because xenial's kernel/glibc headers are broken AF.

We don't actually need anything from net/if.h here, so don't include it.
5 years ago
jeff ff8c167362 make it compile on windows 5 years ago
Michael fadedb4a7b
Distinct ios build 5 years ago
Michael 84601fa474
Make format 5 years ago
Rick V d4688ed3b3
get our TAP ifindex to pass to ipv6(1) on old platforms 5 years ago
Rick V a346f0d279
now i remember why i had to open /dev/tun twice on solaris
that _should_ fully close the TUN interface on Solaris
5 years ago
michael-loki 0195152e05 Allow builds on MSVC (#518)
* Import cxxopts to replace getopts usage

* Add visual studio build things

* Fixup abseil build parts

* Replace __attribute__((unused)) with ABSL_ATTRIBUTE_UNUSED

* Fixup minor windows build issues

* Replace getopts usage

* Temporarily fixup .rc files

* More minor windows fixes

* Get a working build

* Revert .rc files

* Revert changes to nodedb
5 years ago
Rick V 1eddba0dd3
that _should_ be just enough to implement TUN on Solaris 2.x
sadly this is ineligble for upstream because we don't bother
to use TAP in the slightest
5 years ago
Rick V 0de253065e
remove ded code
add code for proper DNSc search
5 years ago
despair d26141d433 Merge branch 'dev' into reeeee-divergence
ok hope this works -rick

# Conflicts:
#	.gitignore
#	.vscode/settings.json
#	include/llarp/service/context.hpp
#	llarp/dns.cpp
#	llarp/dnsc.cpp
#	llarp/ev.cpp
#	llarp/ev.hpp
#	llarp/ev_win32.hpp
#	llarp/net.cpp
#	llarp/router.cpp
#	llarp/router.hpp
#	llarp/service/context.cpp
6 years ago
Jeff Becker 622ed8d12e
fix crash on premature close of event loop (also make format) 6 years ago
Jeff Becker 7e4d74cbfc
add initial jni stuff for lokinet android. i fucking hate android so god damn much. 6 years ago
despair e18f786ab2 refactor event loop stuff
find some place in the C code to place the worker thread procedure
until such time that michael presents the new thread pool class

fix unix

get a new event port each time and delet in the event loop after use
6 years ago
Jeff Becker 69e187cfd7
make it compile 6 years ago
despair86 9d546cbac4 separate read and write event ports to avoid overwriting queue events 6 years ago
despair86 94c5f46d33 try fixing win32 event loop 6 years ago
despair86 8ac7d4f6dc if we didn't specify a path to save our config in, only create .lokinet on the assumption that $HOME or $APPDATA (on NT) already exist
add win32 tun glue, fix llarp timebase
(In fact, _both_ of these are guaranteed to exist on their respective platforms.)
also, tuntap is now wired up to the windows port
6 years ago
Jeff Becker 685fc464c0
we don't need TAP 6 years ago
Jeff 929cd8169f i fucking hate apple it's fucking shit, fucking god awful shit.
also drybones will never find this.
6 years ago
despair86 715490ab3d ok that should untangle unix 6 years ago
Ricardo Villegas 3cca107041 more header fixes
-despair86
6 years ago
Jeff Becker 4aebbda640
more tun stuff 6 years ago
Ricardo Villegas d394e229ca unix fixes 6 years ago
despair86 9ad93a0893 sunos patches, avoid shadowing data members in derived classes, header fixes
SunOS build works, with a few issues:

- no tuntap debugging on Solaris? (TUNSDEBUG ioctl missing)
- regular socket ioctls are not pulled in with #include <sys/ioctl.h>
  even though they're included at the bottom of same (filio.h,
  sockio.h)
- no named threads in any libre fork of solaris

-despair86 (rick)

sun patch
6 years ago
Jeff Becker bb2754f3d9
more fixes? 6 years ago
Jeff Becker 191e9c29e1
will this help ? idk 6 years ago
Jeff Becker c36c83d9dc
more hidden service code 6 years ago
Jeff Becker d5532e4de4
more boilerplate and enable tun/tap build 6 years ago