Commit graph

  • 33d8747021 Set myself->status.reachable. Guus Sliepen 2002-03-25 13:54:49 +00:00
  • 2749b997df Configuration variables were still handled case sensitively. Guus Sliepen 2002-03-24 17:14:01 +00:00
  • c73bdd6bc8 OpenBSD tun device uses address family number instead of Ethernet type. Guus Sliepen 2002-03-24 17:08:38 +00:00
  • 8379c14b7f Respect type field. Guus Sliepen 2002-03-24 16:50:58 +00:00
  • ad4f5cbc5f Updated dutch translation. Guus Sliepen 2002-03-24 16:40:14 +00:00
  • 4252ae83a4 Set $INTERFACE correctly when using ethertap while compiled with tun/tap support. Guus Sliepen 2002-03-24 16:36:56 +00:00
  • d699f3079c Execute hosts/name-up when a node becomes reachable, and hosts/name-down when it becomes unreachable. Guus Sliepen 2002-03-24 16:28:27 +00:00
  • 6ad5dd1a9a Don't try to execute scripts unless they exist. Guus Sliepen 2002-03-24 16:22:59 +00:00
  • 594d5b5d15 Reset retry timeout when receiving the first PONG, not right after receiving the ACK. Guus Sliepen 2002-03-23 20:21:10 +00:00
  • cbd8133ab4 Don't run graph algorithms if no edge is deleted in terminate_connection(). Guus Sliepen 2002-03-23 20:13:56 +00:00
  • 6aee1ad021 free() request strings when deleting past requests from the tree. Guus Sliepen 2002-03-23 20:12:29 +00:00
  • ccea26e004 send_ack() was broken. Guus Sliepen 2002-03-23 20:01:05 +00:00
  • 3c5655f59e Fix compiler warnings, strictly use long int and %lx for options. Guus Sliepen 2002-03-22 13:31:18 +00:00
  • d6b70ed6f8 Fix add_edge_h(). Guus Sliepen 2002-03-22 12:41:54 +00:00
  • 52e7699273 - Added support for jumbograms. - Remove tcpaddress from edges, it is not used at all. - Last bits of code to prevent looping requests. Guus Sliepen 2002-03-22 11:43:48 +00:00
  • 9da5390666 Put a break on requests that run around in circles. Guus Sliepen 2002-03-21 23:11:53 +00:00
  • f48f8f4fed Updated SSSP algorithm to automatically detect indirect links (if a node uses different addresses for connections to other nodes). Guus Sliepen 2002-03-19 22:48:25 +00:00
  • 5a88a27742 Updated dutch translation. Guus Sliepen 2002-03-19 00:08:34 +00:00
  • 5c2d74de86 Don't use s6_addr[16|32] anymore. Guus Sliepen 2002-03-19 00:08:23 +00:00
  • 9d99a789c3 Cleanup. Guus Sliepen 2002-03-19 00:07:09 +00:00
  • 305505f5ec Remember sockaddrs of listening sockets, use appropriate one when sending UDP packets. Guus Sliepen 2002-03-18 22:47:20 +00:00
  • 106fc2b769 Fix #define s6_addr32. Guus Sliepen 2002-03-18 14:39:37 +00:00
  • 813c369a8f #define s6_addr32, needed for FreeBSD. Guus Sliepen 2002-03-18 14:19:02 +00:00
  • b2579385de Only unmap IPv6 addresses. Guus Sliepen 2002-03-17 16:08:39 +00:00
  • 8b84c44175 Unmap v4mapped sockaddrs. Guus Sliepen 2002-03-17 15:59:29 +00:00
  • 07e37f8da0 Typo. Guus Sliepen 2002-03-15 15:50:14 +00:00
  • e0dee53770 Different way of detecting neighbor solicitation requests. Guus Sliepen 2002-03-15 15:40:40 +00:00
  • 0e93f0aa02 Oops, don't forget to actually put the checksum in the response packet. Guus Sliepen 2002-03-15 15:08:21 +00:00
  • e1de9ca990 Neighbor solicitation requests now work (I think). Guus Sliepen 2002-03-15 14:41:57 +00:00
  • 4b3aef9e69 Revert changes to Kruskal's algo. Guus Sliepen 2002-03-12 16:30:15 +00:00
  • f219f156cf Put #ifdef NEIGHBORSOL around corresponding code. Guus Sliepen 2002-03-12 14:25:04 +00:00
  • ecad9e9289 Remove silly cache thingy. Guus Sliepen 2002-03-12 14:20:44 +00:00
  • d6c2c4f2b7 Packet sequence number/authentication warnings only if debug_lvl >= 5. Guus Sliepen 2002-03-12 14:19:51 +00:00
  • 2e7db2a693 Simplified implementation of Kruskal's minimum spanning tree algorithm. Guus Sliepen 2002-03-12 13:42:23 +00:00
  • d2e0ed533c New strategy: forward icmp6 neighbor solicitations to intended target. Guus Sliepen 2002-03-11 13:56:00 +00:00
  • 46fa10cec7 Try to reply to neighbor solicitation requests. Guus Sliepen 2002-03-11 13:14:53 +00:00
  • c2713ba7a5 prune_connections() before build_fdset(). Guus Sliepen 2002-03-11 11:45:12 +00:00
  • 4fda4560bb Cleanups, spelling fixes, allow symbol names for signals (-k option), don't remove pidfile if other tincd is still running. Guus Sliepen 2002-03-11 11:23:04 +00:00
  • 5ffeb13d65 Don't retry to make outgoing connections when exitting. Guus Sliepen 2002-03-10 16:09:15 +00:00
  • 3cbe67a8de Small fixes to improve portability. Guus Sliepen 2002-03-10 15:40:27 +00:00
  • 9de7470bfd Autodetect $MAKE/gmake/make. Guus Sliepen 2002-03-10 14:07:08 +00:00
  • 0c34478cc0 po/POTFILES and po/Makefile should not be generated by configure. Guus Sliepen 2002-03-10 14:05:35 +00:00
  • 024ab44d98 Fix forwarding of IPv6 packets. Guus Sliepen 2002-03-10 14:04:48 +00:00
  • 0c16add71c Check if BindToDevice and PriorityInheritance are supported. Guus Sliepen 2002-03-01 15:14:29 +00:00
  • 7d5741859e Woops. Guus Sliepen 2002-03-01 14:33:48 +00:00
  • ab90fa9bd1 Document and clean up MAC address expiry. Guus Sliepen 2002-03-01 14:25:10 +00:00
  • 14979f835d - Global time_t now, so that we don't have to call time() too often. - MAC addresses expire after a time configurable by MACExpire (default 600 seconds) Guus Sliepen 2002-03-01 14:09:31 +00:00
  • 7496ecc45a Updated dutch translation. Guus Sliepen 2002-03-01 13:38:15 +00:00
  • 0c879b8eee Updated documentation. Guus Sliepen 2002-03-01 13:38:02 +00:00
  • f93b1334e0 Create/bind TCP and UDP listening sockets in pairs. Guus Sliepen 2002-03-01 13:18:54 +00:00
  • c2b738e7b5 If "PriorityInheritance = yes" is specified in tinc.conf, the value of the TOS field of the tunneled packets will be passed on to the UDP packets tinc sends out. Guus Sliepen 2002-03-01 12:26:56 +00:00
  • 80ea653e8d Fix listening sockets. Guus Sliepen 2002-03-01 12:25:58 +00:00
  • 7f58ed7685 Make BindToInterface work. Guus Sliepen 2002-03-01 11:18:34 +00:00
  • 17bc5220c3 Fix send_request() bug. Guus Sliepen 2002-02-27 22:37:55 +00:00
  • 50403909b6 Allow multiple listening sockets. Guus Sliepen 2002-02-26 23:26:41 +00:00
  • 2ac7be0d51 Tweaking IPv6 support. Guus Sliepen 2002-02-26 22:47:51 +00:00
  • 23fda5688e - Change SA_LEN to SALEN, former one is already defined on some platforms. - Use SALEN everywhere appropriate. Guus Sliepen 2002-02-20 22:37:38 +00:00
  • dbc5b5bb5e - Use gai_strerror() where appropriate - Clear hints before using them with getaddrinfo() - Use sa_len on platforms that support them Guus Sliepen 2002-02-20 22:15:32 +00:00
  • 28cc9a6488 Preserve inpkt->len, needed for broadcasts. Guus Sliepen 2002-02-20 19:31:15 +00:00
  • c6d0158831 Protocol now also exchanges cipher/digest/maclength/compression for the meta connection. Guus Sliepen 2002-02-20 19:25:09 +00:00
  • 626d5956d2 Cache results of lookup_subnet_...(). Guus Sliepen 2002-02-20 17:16:15 +00:00
  • e8e69460a7 Fix maskcmp() and maskcpy(). Guus Sliepen 2002-02-20 17:15:33 +00:00
  • ed50931290 Forward packets in router mode. Guus Sliepen 2002-02-20 16:04:59 +00:00
  • 8c91fac315 Use AF_UNSPEC for listening sockets if AddressFamily = any. Guus Sliepen 2002-02-20 16:04:39 +00:00
  • 76f01453df Fix segfault when receiving HUP signal. Guus Sliepen 2002-02-20 16:04:07 +00:00
  • c2b9c06062 - Non-blocking connect()s. - Socket handling revamped to use sockaddr_t. - tinc can now tunnel over IPv6. - Handle all addresses and subnets in network byte order. Only convert them when they need to be printed. - IPv6 subnets bigger than /128 now work. - Use %s and strerror(errno) instead of %m. Guus Sliepen 2002-02-18 16:25:19 +00:00
  • fc674eaae1 Add check for NetBSD. Guus Sliepen 2002-02-12 14:42:37 +00:00
  • 2fb8a62ede Added device.c for NetBSD, actually a copy of the OpenBSD one. Guus Sliepen 2002-02-12 14:40:12 +00:00
  • f64b41a73b Get rid of sys/signal.h. Guus Sliepen 2002-02-12 14:36:45 +00:00
  • dd611fb4f9 Don't use sa_sigaction (which NetBSD doesn't like) at all if we don't use siginfo. Guus Sliepen 2002-02-12 14:29:00 +00:00
  • d9a62c6354 Added support for packet compression, thanks to Mark Glines. Add "Compression = <level>" to the host config files, where level can be 0 (off), or any integer between 1 (fast) and 9 (best). Guus Sliepen 2002-02-11 15:59:18 +00:00
  • 94b171b305 Small fix. Guus Sliepen 2002-02-11 14:20:46 +00:00
  • 1708997bc8 - If no PrivateKeyFile is specified, /etc/tinc/netname/rsa_key.priv is assumed. - Check RSA key before using it. Guus Sliepen 2002-02-11 14:20:21 +00:00
  • 1c34ba7fb8 Sensible defaults for $INTERFACE. Guus Sliepen 2002-02-11 12:33:01 +00:00
  • 24cc2a9065 Last bits of the merger. Guus Sliepen 2002-02-11 10:16:18 +00:00
  • 5bf4b88666 Forgot to merge new files from pre5. Guus Sliepen 2002-02-11 10:05:58 +00:00
  • f0aa9641e8 Merging of the entire pre5 branch. Guus Sliepen 2002-02-10 21:57:54 +00:00
  • c2752b961c Conversion to struct addrinfo is almost complete for this file. Ivo Timmermans 2001-11-16 22:41:38 +00:00
  • 4f47da5b87 Don't include netutl.h. Ivo Timmermans 2001-11-16 22:40:26 +00:00
  • a59bbc7231 Fixed silly typo: "np" instead of "no" Ivo Timmermans 2001-11-16 22:31:41 +00:00
  • bf664c054f get_config_subnet needs to be fixed. Ivo Timmermans 2001-11-16 22:31:15 +00:00
  • 9b2b374734 route_ipv4 and route_ipv6 replaced by route_ip. Ivo Timmermans 2001-11-16 17:40:50 +00:00
  • a4938b22e7 Don't include netutl.h. Ivo Timmermans 2001-11-16 17:39:59 +00:00
  • ccda709f82 lookup_node_udp changed. Ivo Timmermans 2001-11-16 17:39:38 +00:00
  • 836766d4c5 First part of rewriting things to use struct addrinfo. Ivo Timmermans 2001-11-16 17:38:39 +00:00
  • 2ec5b5f862 Added dropin replacements for get*info and helper functions. Ivo Timmermans 2001-11-16 17:37:08 +00:00
  • aabe59f630 Added HAVE_STRUCT_ADDRINFO Ivo Timmermans 2001-11-16 16:16:33 +00:00
  • 251f87c842 (re)added port to struct node_t Ivo Timmermans 2001-11-16 15:56:44 +00:00
  • 6cf744e4b2 Don't include netutl.h. Ivo Timmermans 2001-11-16 12:22:02 +00:00
  • a79252af43 Obsoleted. Ivo Timmermans 2001-11-16 12:21:22 +00:00
  • 331d9402e8 Don't compile/link netutl.c. Ivo Timmermans 2001-11-16 12:16:28 +00:00
  • f95e6ca8f6 get_config_{ip,port} removed. Ivo Timmermans 2001-11-16 12:14:20 +00:00
  • 31db57bb4a Changed to use struct addrinfo where needed. Ivo Timmermans 2001-11-16 12:13:34 +00:00
  • f1b20b3ded Obsoleted all IP<x> types in favor of struct addrinfo Ivo Timmermans 2001-11-16 12:10:54 +00:00
  • fb6dc0b089 Removed definitions of ipv4_t, ipv6_t, port_t Ivo Timmermans 2001-11-16 12:08:38 +00:00
  • 3ef15f2554 Changed lookup_connection to use struct addrinfo Ivo Timmermans 2001-11-16 12:02:17 +00:00
  • 74e1299fb5 Changed prototype for lookup_connection to use struct addrinfo Ivo Timmermans 2001-11-16 12:01:48 +00:00
  • 51b72b75f2 Use struct addrinfo in connection_t to hold all host data such as IP address and port Ivo Timmermans 2001-11-16 00:23:28 +00:00
  • 72395f989c Deprecated get_config_ip and get_config_port Ivo Timmermans 2001-11-16 00:13:08 +00:00
  • 93cd0e33de Check for struct addrinfo Ivo Timmermans 2001-11-15 23:49:46 +00:00