Commit graph

  • d647a587a1 (1) Fix updating of network revision counter on member change. Adam Ierymenko 2015-07-23 17:18:20 -07:00
  • a493fc23f4 Fix for make-linux: detect whether CC/CXX were explicitly overridden, and if not then use the gcc/clang selection logic. Otherwise ?= breaks this. Adam Ierymenko 2015-07-23 13:05:18 -07:00
  • b3516c599b Add a rate limiting circuit breaker to the network controller to prevent flooding attacks and race conditions. Adam Ierymenko 2015-07-23 10:10:17 -07:00
  • 3ba54c7e35 Eliminate some poorly thought out optimizations from the netconf/controller interaction, and go ahead and bump version to 1.0.4. Adam Ierymenko 2015-07-23 09:50:10 -07:00
  • b41079ddf9 Update Application Mac Menu. Small MacGap leftover. Nelson Chen 2015-07-22 22:40:43 -07:00
  • e2a2993b18 Add a Log table to log queries for debugging and security logging. No JSON API support for querying the log yet, but will probably come via /network/###/member/###/log/... or something. Adam Ierymenko 2015-07-22 14:01:49 -07:00
  • 8ca885d27c Merge pull request #212 from keesbos/fix Adam Ierymenko 2015-07-22 09:34:17 -07:00
  • bc0954381c Merge branch 'adamierymenko-dev' into android-jni Grant Limberg 2015-07-21 17:53:39 -07:00
  • d05e8a9772 Merge branch 'adamierymenko-dev' into android-jni Grant Limberg 2015-07-20 19:51:58 -07:00
  • 1e8ead441c Merge branch 'adamierymenko-dev' into android-jni Grant Limberg 2015-07-16 18:09:57 -07:00
  • e45475c5b5 fixed a misspelling Grant Limberg 2015-07-09 20:26:23 -07:00
  • a408e5f685 set ZT_NO_TYPE_PUNNING and -O3 for Android builds Grant Limberg 2015-07-08 17:59:53 -07:00
  • f67ddb579d Merge branch 'adamierymenko-dev' into android-jni Grant Limberg 2015-07-08 17:30:22 -07:00
  • 1ad2cfeedf Merge branch 'adamierymenko-dev' into android-jni Grant Limberg 2015-07-07 19:24:02 -07:00
  • 53c7f61f98 Fix for output of empty (no members) network Kees Bos 2015-07-05 13:27:27 +02:00
  • 7c761dea72 Fix to member listing: I wanted an object with member IDs as keys and member revisions as values, not an array. Adam Ierymenko 2015-07-21 14:12:22 -07:00
  • 3f8a5b8b76 List members in the form of a hash of member ID and member revision so code can quickly detect which members have changed. Adam Ierymenko 2015-07-21 13:38:59 -07:00
  • a061aa3d87 Remove "members" from Network record and instead enumerate members via specific query to /network/nwid/member sub-path. More RESTful, scalable, and compatible with how OnePoint code works. Adam Ierymenko 2015-07-21 12:57:01 -07:00
  • b343eac10d Fix IP auto-assign bug due to missing subnet routes. Adam Ierymenko 2015-07-21 12:42:43 -07:00
  • 649a12472b Report controllerInstanceId in all objects so that controller resets can be easily detected by whatever is using the service. Adam Ierymenko 2015-07-21 10:39:29 -07:00
  • cac6be87ba Fix bug in rules JSON output. Adam Ierymenko 2015-07-20 16:31:37 -07:00
  • 38d34a7495 Proper handling of NULL entry for etherType in rules table. Adam Ierymenko 2015-07-20 15:11:53 -07:00
  • fb4c3dd8d4 Fix string overwrite bug. Adam Ierymenko 2015-07-20 14:31:33 -07:00
  • 1ffd67e014 Get rid of false foreign key in Relay. Adam Ierymenko 2015-07-20 14:28:30 -07:00
  • 8c18c60c00 sp. Adam Ierymenko 2015-07-17 15:30:13 -07:00
  • bca8886ff8 IP assignment pool range bug fix. Adam Ierymenko 2015-07-17 15:09:28 -07:00
  • 1f7bb67069 Fix some SQL and make instanceId more robustly random. Adam Ierymenko 2015-07-17 13:09:53 -07:00
  • 712e2785f2 Fix bad JSON in response. Adam Ierymenko 2015-07-17 12:24:42 -07:00
  • 5515909c1e Add a concept of an "instanceId" to the controller, which the OnePoint can use to determine whether it is the same running database instance it already knows. Adam Ierymenko 2015-07-17 10:47:21 -07:00
  • 5ef806c43c Fix addLocalInterfaceAddress call in OneService on Windows Grant Limberg 2015-07-16 19:20:43 -07:00
  • 0db7c94c90 Add memberRevision stuff to JSON output, and update docs. Adam Ierymenko 2015-07-16 17:42:47 -07:00
  • 99969b186b Add a concept of a member revision counter to networks. This can be used to select all members that have been added or changed since a given point. Adam Ierymenko 2015-07-16 17:34:03 -07:00
  • f9f7de0ec7 Networks don't need their ID as a default name. Adam Ierymenko 2015-07-14 15:54:56 -07:00
  • d27c14af48 Don't allow zero as a network number. Adam Ierymenko 2015-07-14 12:32:57 -07:00
  • 88949a750f Workaround for uclibc missing map::operator==() Adam Ierymenko 2015-07-13 11:39:55 -07:00
  • 547b1c6157 Add additional TRACE output in pushDirectPaths. Adam Ierymenko 2015-07-13 10:35:33 -07:00
  • 0b354803f3 Clean up some YAGNI issues with implementation of GitHub issue #180, and make best path choice aware of path rank. Adam Ierymenko 2015-07-13 10:03:04 -07:00
  • 0b9524f23d Merge branch 'adamierymenko-dev' of http://git.int.zerotier.com/zerotier/zerotierone into adamierymenko-dev Adam Ierymenko 2015-07-13 09:30:02 -07:00
  • 4bf3bcbd55 Fixes to PUSH_DIRECT_PATHS. Adam Ierymenko 2015-07-13 09:29:51 -07:00
  • 3f0eca72f7 ZT_TRACE build fix. Adam Ierymenko 2015-07-13 08:36:22 -07:00
  • fe20f0d7cd Put back legacy code to listen for LAN announcements to support same network location with pre-1.0.4 clients. Adam Ierymenko 2015-07-13 08:33:02 -07:00
  • d78e3bb307 Disable HTTP test in selftest since it works, and GitHub issue #207. Adam Ierymenko 2015-07-13 07:42:20 -07:00
  • a297e4a5bf Add build def ZT_NO_TYPE_PUNNING, which when defined disables type punning code that might cause unaligned access errors on architectures that care (e.g. Android/ARM) Adam Ierymenko 2015-07-08 09:12:51 -07:00
  • 412389ec75 Implement ERROR_UNWATNED_MULTICAST Adam Ierymenko 2015-07-07 11:49:38 -07:00
  • cf6f30963c Kill a potential source of type punning BUS errors on Android, and besides that hack probably did not improve performance at all given the short lenghts of things compared with secureEq() Adam Ierymenko 2015-07-07 10:59:59 -07:00
  • 3f567a07ca Save a little bit of RAM by getting rid of overkill CMWC4096 non-crypto PRNG and replacing it with a simple non-crypto PRNG that just uses Salsa20. Adam Ierymenko 2015-07-07 10:49:50 -07:00
  • 41fc08b330 etherTypeName() is only used in Switch and only with ZT_TRACE Adam Ierymenko 2015-07-07 10:06:05 -07:00
  • 07ea4fd4f9 Fix potential bug in controller config request. Adam Ierymenko 2015-07-07 10:02:48 -07:00
  • 778c7e6e70 More cleanup to direct path push, comment fixes, etc. Adam Ierymenko 2015-07-07 10:00:34 -07:00
  • c863ff3f02 A bunch of comments and cleanup, including some to yesterday's direct path pushing changes. Move path viability check to one place, and stop trying to use link-local addresses since they are not reliable. Adam Ierymenko 2015-07-07 08:54:48 -07:00
  • f398952a6c Revert some bad docs in Packet -- I think we will still use that. Also rename addMembershipCertificate to more security-descriptive validateAndAddMembershipCertificate, give it a return value, and drop unused force parameter. Adam Ierymenko 2015-07-07 08:14:41 -07:00
  • 56285ec0d4 Another attempt at a fix for all the Windows driver coma issues. Adam Ierymenko 2015-07-06 17:58:04 -07:00
  • 25a067c8c3 Eliminate debug printf(). Adam Ierymenko 2015-07-06 17:37:32 -07:00
  • 91fa643131 Minor fix to Windows local adapter address enumeration. Adam Ierymenko 2015-07-06 17:36:58 -07:00
  • 6da9d2d36f Remove debug printf(). Adam Ierymenko 2015-07-06 17:23:22 -07:00
  • f881cdd767 Add new .h file to VS build, and Windows side of local interface address enumeration. Adam Ierymenko 2015-07-06 17:22:37 -07:00
  • 84ba365c77 Fix bug in direct path push send. Adam Ierymenko 2015-07-06 17:20:41 -07:00
  • f9f4dd5276 Fix FreeBSD regression -- gmake defaults g++ which does not exist. Adam Ierymenko 2015-07-06 16:47:41 -07:00
  • cac55105c3 Fix a regression. Adam Ierymenko 2015-07-06 16:40:23 -07:00
  • a87cd2d094 Unix side of local interface address awareness for GitHub issue #180. Adam Ierymenko 2015-07-06 16:32:34 -07:00
  • 235f4762b7 Plumbing for local interface addresses -- GitHub issue #180 Adam Ierymenko 2015-07-06 15:51:04 -07:00
  • 79e9a8bcc2 Almost everything for GitHub issue #180 except direct path map setup. Adam Ierymenko 2015-07-06 15:28:48 -07:00
  • fad9dff2db Almost all of GitHub issue #180 Adam Ierymenko 2015-07-06 15:05:04 -07:00
  • 1632aec102 Check Network::isAllowed() always on multicast send. Adam Ierymenko 2015-07-06 14:53:27 -07:00
  • 255320e2a6 pushDirectPaths() implementation Adam Ierymenko 2015-07-06 14:39:28 -07:00
  • 93bb934d4e Some cleanup, docs, and Path -> Path > RemotePath refactor. Adam Ierymenko 2015-07-06 14:08:13 -07:00
  • feddd946f9 For curiosity add Salsa20/8 to benchmarks. Adam Ierymenko 2015-07-06 13:51:25 -07:00
  • 6bfbc43e3c Include COM with EXT_FRAME in bridged case. Adam Ierymenko 2015-07-06 12:46:27 -07:00
  • 35b5dcf89d Kill debug line. Adam Ierymenko 2015-07-06 12:39:20 -07:00
  • 9743db3538 docs Adam Ierymenko 2015-07-06 12:37:37 -07:00
  • e5f7c55c54 Documentation in Packet, more work on path push, and clean up ancient legacy support code in Switch. Adam Ierymenko 2015-07-06 12:34:35 -07:00
  • df08c2cfab Merge pull request #203 from mwarning/loadlibs Adam Ierymenko 2015-07-06 09:01:38 -07:00
  • 21cdfb96de rename LIBS to LDLIBS and make it accessible from outside Moritz Warning 2015-07-04 20:32:26 +02:00
  • 6d398beefd Merge branch 'adamierymenko-dev' into android-jni Grant Limberg 2015-07-03 18:15:56 -07:00
  • ab34884e3e Set -O0 Grant Limberg 2015-07-03 18:14:50 -07:00
  • 532f413472 Merge pull request #202 from mwarning/openwrt Adam Ierymenko 2015-07-03 14:28:53 -07:00
  • 235d4aba9a allow environment variables to set/extend CC, CXX, CFLAGS and LDFLAGS Moritz Warning 2015-07-03 20:18:19 +02:00
  • cfdf4e3a49 GitHub issue #171 -- separate CFLAGS and CXXFLAGS in Linux makefile Adam Ierymenko 2015-07-02 09:13:56 -07:00
  • f19c3c51d3 Revert slow non-SSE Salsa20 modification since it did not fix Android/ARM issue. Also update Salsa20 comments and clean up a bit. Adam Ierymenko 2015-07-02 09:00:00 -07:00
  • 0b7cd2f40a change some build settings. add a lock Grant Limberg 2015-07-01 20:26:14 -07:00
  • 2a2e3b80b3 Merge branch 'adamierymenko-dev' into android-jni Grant Limberg 2015-07-01 18:13:59 -07:00
  • f803dd5ff4 ... Grant Limberg 2015-07-01 18:13:39 -07:00
  • 7c9949eea3 For @glimberg -- a *possible* fix to the alignment headaches on Android/ARM. If this works we should find a define that can be used to enable it there since it will slow things down on non-x86 other architectures. Adam Ierymenko 2015-07-01 12:29:23 -07:00
  • d853dbf2d8 Merge branch 'adamierymenko-dev' into android-jni Grant Limberg 2015-06-30 19:23:23 -07:00
  • aee8e95d49 logging Grant Limberg 2015-06-30 19:21:46 -07:00
  • 0cbbcf2884 Rename VERB_CMA to the more descriptive VERB_PHYSICAL_ADDRESS_PUSH Adam Ierymenko 2015-06-29 16:01:01 -07:00
  • 30e4a188d0 ipLocalRoutes now exposed via network objects in JSON controller API, and documentation changes. Adam Ierymenko 2015-06-29 15:34:26 -07:00
  • 5c9411a671 Untested -- modifications to support IP ranges instead of ip/mask for IP assignment pools, also add portId to Rule for future use. Adam Ierymenko 2015-06-29 14:52:09 -07:00
  • 48a2ad032a (1) Both nodeId and portId in Rule can be NULL, (2) remove on delete cascade since rules should never mysteriously disappear from the rules table. If it let you delete a node with rules, that would be a UI or cleanup function bug. Adam Ierymenko 2015-06-29 10:47:47 -07:00
  • f05e62deae DB schema changes: separate portId in rules, ranges in IP assignment pools. (No code changes yet so code is broken.) Adam Ierymenko 2015-06-29 10:40:31 -07:00
  • a5a3909e52 Merge 72c8cf3c37 into dbee1b38b3 keesbos 2015-06-29 17:27:09 +00:00
  • dbee1b38b3 Fix semantics of std::unique() to actually remove duplicates (hidden memory leak?) Adam Ierymenko 2015-06-29 10:21:28 -07:00
  • 72c8cf3c37 Implement route elements with ip range pools Kees Bos 2015-06-29 00:46:34 +02:00
  • 8cd7b5e77b Merge 3f6a03c7a4 into 3f71afd0fb keesbos 2015-06-28 21:44:59 +00:00
  • c7a06863ec Merge 8cb5bbfcb2 into 3f71afd0fb keesbos 2015-06-27 11:55:47 +00:00
  • c9919cc5ba reflect changes to ZT1_PeerRole in JNI Grant Limberg 2015-06-26 18:26:57 -07:00
  • 9c26d10ea6 Merge branch 'adamierymenko-dev' into android-jni Grant Limberg 2015-06-26 17:44:09 -07:00
  • 5bb29e2ca9 Merge 6c7dfcafc1 into 3f71afd0fb Moritz Warning 2015-06-26 22:59:28 +00:00
  • 3f6a03c7a4 Fix creation of rules Kees Bos 2015-06-26 23:44:36 +02:00
  • aae844450b Show rules in logical order Kees Bos 2015-06-26 22:27:32 +02:00