summaryrefslogtreecommitdiff
path: root/net
AgeCommit message (Collapse)AuthorFilesLines
2010-05-10My initial stab at fixing the Linux build was incomplete.tnn2-4/+5
Apply patch from Gary Duzan (PR pkg/43276)
2010-05-09dnsruby-1.46:pettai2-6/+6
* DNSKEY#key= raises ArgumentError if bad key used at creation. * Arrays of DNSKEYs allowed for verify_rrset(). * dnssec-bis-updates recommendation for NSEC and RRSIG. * ZoneReader handles absolute binary names properly. * Test fixes for more platforms.
2010-05-08Update to KDE SC 4.4.3markd2-7/+5
Numerous fixes in Konsole, KDE's terminal emulator, among them two possible crashers in session management Flash plugin support in KHTML has been enhanced to work with newest Youtube skins Case-sensitivity in renaming fixes in KIO, KDE's network-transparent I/O library Hiding the mouse cursor in some special cases in presentation mode and two possible crashers have been fixed
2010-05-06Set LICENSE=iscobache1-2/+2
2010-05-06nsd 3.2.5:pettai2-6/+6
Features: * New option 'nsid:', to specify the NSID (Bugfix #298). * The default chroot can be set with --with-chroot=dir. If not set, by default chroot will not be used. * Optimized zonec and b64_pton compatibility code. * Optimized memory allocations. Use mmap/munmap instead of malloc/free. Experimental, by default off. Enable it at build time with --enable-mmap. Bugfixes: * NSD will not start if chroot is configured, but changing root is not possible * Make use of the more secure strl* functions. * Bugfix #303: spelling error. Operational notes: * NSID support is now enabled by default.
2010-05-06unbound-1.4.3:pettai2-6/+6
Features: * Experimental ECC-GOST algorithm support. * unbound-host disables use-syslog from config file. * Include less in config.h and include per code file for ldns, ssl. Bug Fixes: * [bugzilla: 305 ] (regarding pkt_dname_tolower). * Fix chain of trust with CNAME, for the DS processing proof. * Fix validation of queries with wildcard names (*.example). * Fix EDNS probe for .de DNSSEC testbed failure (backoff). * unbound control flushed items are not counted when flushed again. * iana portlist updated. * [bugzilla: 301 ] (regarding unbound-checkconf). * Fixed random numbers for port, interface and server selection. * Refer to the listing in unbound-control man page in the extended \ statistics entry in the unbound.conf man page. * Fix interface-automatic for OpenBSD: msg.controllen was too small. * check for IP_SENDSRCADDR for interface-automatic or IP_PKTINFO. * for NSEC3 check if signatures are cached. * Reordered configure checks so fork and -lnsl -lsocket checks are earlier. * ldns tarball updated. * Fix python use when multithreaded. * Fix solaris python compile. * spelling fix in validation error involving cnames.
2010-05-05Fix loading of pam modules on older versions on NetBSD, wheremarkd3-3/+20
the dependency of the module on libpam was not explicit.
2010-05-02Update to 4.0.6:wiz3-7/+9
--- 4.0.6 2010/04/29 Fix yaz-config for static mode and the use of SSL (gnutls). --- 4.0.5 2010/04/29 Forward decl timeval struct in mutex.h and gettimeofday.h. yaz-config: fix 'static' mode linking. --- 4.0.4 2010/04/28 Add functions yaz_cond_{create,destroy,wait,signal,broadcast}. These are wrappers for pthreads or Windows. For Windows these are put in a separate DLL: yaz_cond4. libyaz.la (whole source) is compiled with thread. If thread support is enabled enabled, all source of YAZ is compiled with treading support. This allows core utilities such as yaz_log to use thread facilities. Previously (YAZ 3 and YAZ 4 releases), only libyaz_server.la was using thread utilities. This commit moves mutex utilities (mutex.c) from libyaz_server.la to libyaz.la. yaz-json-parse displays leading text until error.
2010-05-02Update to 0.0.11:wiz6-47/+16
libnice 0.0.11 (2010-03-18) =========================== Handle EAGAIN for UDP sockets Fix coverity warnings Fix a bug with TURN and Channel Bindings Add a reliable transport mode using libjingle's PseudoTcp implementation Various fixes
2010-05-02Update to 0.13.3:wiz4-40/+50
Changes since 0.13.2: - Include the Content-Type header in the HTTP messages. This satisfies DLNA CTT test cases 7.2.5.9 and 7.2.29.1. - Use g_message instead of g_warning if we can't connect to DBus. - Make the HTTP server listen on the context's interface only. - Fix some potential crashes in GUPnPServiceProxy and GUPnPContextManager code. - Fix build issues in jhbuild environment. - Fix some gcc warnings. - Add new API to host path for specific user-agent(s). - Add gobject-introspection support: - Provide gobject-introspection GIR and typelib. - Add needed annotations to doc comments. - Add GList variants of action-related functions to satisfy PyGI. - A few non-functional improvments. Dependency related changes: - gssdp >= 0.7.1 Bugs fixed in this release: 2054 - Xbox hacks 1965 - gcc warning fixes 2039 - GUPnP is hard to use with jhbuild 1948 - Signal handler are not disconnected when ContextManager is disposed 2030 - gupnp context listens on 0.0.0.0 instead of the context's ip 1924 - Content-Type header must contain charset="utf-8" in all HTTP transactions 2006 - Implement 3 new functions for language bindings (begin_action_list, end_action_list, gupnp_service_action_get_value_type) 1919 - Add GObject Introspection Annotations and Makefile 1979 - g_warning make gupnp-igd test fails 1906 - Tests failed with gupnp 0.13
2010-05-02Update to 0.7.2:wiz2-6/+6
0.7.2 ===== - Provide gobject-introspection GIR and typelib. - Use silent build rules. - Fix issues with version-independence magic in SSDP code. - Fix build issues in jhbuild environment. Bugs fixed in this release: 2025 - autogen.sh fails to find autoconf macros when they're installed in a non-standard location 1927 - gssdp fails to answer M-SEARCH sometimes 1921 - GObject Introspection Makefile for GSSDP
2010-05-01Upgrade tinc to version 1.0.13.tonnerre5-106/+46
Changes since 1.0.9: * Mark Forwarding and DirectOnly options as being experimental. * Don't redefine MAX if it already exists. * Fixes for definitions under Windows. * Ensure subnet-up/down scripts are called after HUP when necessary. * Fix reloading Subnets when StrictSubnets is set. * Reload Subnets when getting a HUP signal and StrictSubnets is used. * Ensure ICMP_NET_ANO is defined. * Convert Port to numeric form before sending it to other nodes. If one uses a symbolic name for the Port option, tinc will send that name literally to other nodes. However, it is not guaranteed that all nodes have the same contents in /etc/services, or have such a file at all. * Never delete Subnets when StrictSubnets is set If a node is unreachable, and not connected to an edge anymore, it gets deleted. When this happens its subnets are also removed, which should not happen with StrictSubnets=yes. Solution: - do not remove subnets in src/net.c::purge(), we know that all subnets in the list came from our hosts files. I think here you got the check wrong by looking at the tunnelserver code below it - with strictsubnets we still inform others but do not remove the subnet from our data. - do not remove nodes in net.c::purge() that still have subnets attached. * Log unauthorized Subnets when StrictSubnets is set. * ConnectTo does not mean tinc does not listen for incoming connections anymore. * Fixes for the Forwarding option. * Add the DirectOnly option. When this option is enabled, packets that cannot be sent directly to the destination node, but which would have to be forwarded by an intermediate node, are dropped instead. When combined with the IndirectData option, packets for nodes for which we do not have a meta connection with are also dropped. * Add the Forwarding option. This determines if and how incoming packets that are not meant for the local node are forwarded. It can either be off, internal (tinc forwards them itself, as in previous versions), or kernel (packets are always sent to the TUN/TAP device, letting the kernel sort them out). * Add the StrictSubnets option. When this option is enabled, tinc will not accept dynamic updates of Subnets from other nodes, but will only use Subnets read from local host config files to build its routing table. * Preload all Subnets in TunnelServer mode. This simplifies the logic in protocol_subnet.c. * Check for dirent.h. * Simplify reading lines from configuration files. Instead of allocating storage for each line read, we now read into fixed-size buffers on the stack. This fixes a case where a malformed configuration file could crash tinc. * Clamp MSS to miminum MTU in both directions. Clamp MSS of both incoming and outgoing packets, and use the minimum of the PMTU of both directions when clamping. * Add --disable-zlib configure option * Add --disable-lzo configure option * Ensure peers with a meta connection always have our key. This keeps UDP probes going, which in turn keeps NAT mappings alive. * Update copyright notices. * Try to set DF bit on BSDs as well. Every operating system seems to have its own, slightly different way to disable packet fragmentation. Emit a compiler warning when no suitable way is found. On OpenBSD, it seems impossible to do it for IPv4. * Immediately exchange keys when establishing a meta connection. This in turn will trigger PMTU discovery, and ensures nodes know each others reflexive UDP address and port. * Determine peer's reflexive address and port when exchanging keys. To help peers that are behind NAT connect to each other directly via UDP, they need to know the exact external address and port that they use. Keys exchanged between NATted peers necessarily go via a third node, which knows this address and port, and can append this information to the keys, which is in turned used by the peers. Since PMTU discovery will immediately trigger UDP communication from both sides to each other, this should allow direct communication between peers behind full, address-restricted and port-restricted cone NAT. * Be liberal in accepting KEY_CHANGED/REQ_KEY/ANS_KEY requests. When we got a key request for or from a node we don't know, we disconnected the node that forwarded us that request. However, especially in TunnelServer mode, disconnecting does not help. We now ignore such requests, but since there is no way of telling the original sender that the request was dropped, we now retry sending REQ_KEY requests when we don't get an ANS_KEY back. * Run subnet-up/down scripts for local MAC addresses as well. * Fix subnet-up/down scripts being called with an empty SUBNET. Commit 052ff8b2c598358d1c5febaa9f9f5fc5d384cfd3 contained a bug that causes scripts to be called with an empty, or possibly corrupted SUBNET variable when a Subnet is added or removed while the owner is still online. In router mode, this normally does not happen, but in switch mode this is normal. * Make MSS clamping configurable, but enabled by default. It can either be set globally in tinc.conf, or per-node in host config files. * Also clamp MSS of TCP over IPv6 packets. * Optimise handling of select() returning <= 0. Before, we immediately retried select() if it returned -1 and errno is EAGAIN or EINTR, and if it returned 0 it would check for network events even if we know there are none. Now, if -1 or 0 is returned we skip checking network events, but we do check for timer and signal events. * Ping nodes immediately when receiving SIGALRM. One reason to send the ALRM signal is to let tinc immediately try to connect to outgoing nodes, for example when PPP or DHCP configuration of the outgoing interface finished. Conversely, when the outgoing interface goes down one can now send this signal to let tinc quickly detect that links are down too. * Clamp MSS of IPv4 SYN packets. Some ISPs block the ICMP Fragmentation Needed packets that tinc sends. We clamp the MSS of IPv4 SYN packets to prevent hosts behind those ISPs from sending too large packets. * Allow Port and PMTUDiscovery options in tinc.conf, always enable PMTUDiscovery by default. * Use xstrdup() instead of xasprintf() to copy static strings. * Allow port to be specified in Address statements. This allows one to connect to use more than one port number to connect to another node. The syntax is now: Address = <hostname> [<port>] * Do not fragment packets smaller than RFC defined minimum MTUs. For IPv6, the minimum MTU is 1280 (RFC 2460), for IPv4 the minimum is actually 68, but this is such a low limit that it will probably hurt performance, so we do as if it is 576 (the minimum packet size hosts should be able to handle, RFC 791). If we detect a path MTU smaller than those minima, and we have to handle a packet that is bigger than the PMTU but smaller than those minima, we forward them via TCP instead of fragmenting or returning ICMP packets. * Forget addresses of unreachable nodes. We clear the cached address used for UDP connections when a node becomes unreachable. This also prevents host-up scripts from passing the old, cached address from when the host becomes reachable again from a different address. * Remove unused variable in lookup_subnet_*() functions. * When learning MAC addresses, only check our own Subnets for previous entries. Before it would check all addresses, and not learn an address if another node already claimed that address. This caused fast roaming to fail, the code from commit 6f6f426b353596edca77829c0477268fc2fc1925 was never triggered. * Start a tinc service if it already exists. * Fast handoff of roaming MAC addresses. In switch mode, if a known MAC address is claimed by a second node before it expired at the first node, it is likely that this is because a computer has roamed from the LAN of the first node to that of the second node. To ensure packets for that computer are routed to the second node, the first node should delete its corresponding Subnet as soon as possible, without waiting for the normal expiry timeout. * Move socket error interpretation to utils.h. * Use WSAGetLastError() to determine cause of network errors on Windows. This reduces log spam and lets path MTU discovery work faster. * Remove localedir leftovers. * Use IP_DONTFRAGMENT instead of IP_MTU_DISCOVER on Windows. This ensures the DF bit on outgoing UDP packets gets set on Windows when path MTU discovery is enabled, reducing fragmentation. * Forward packets to not directly reachable hosts via UDP if possible. If MTU probing discovered a node was not reachable via UDP, packets for it were forwarded to the next hop, but always via TCP, even if the next hop was reachable via UDP. This is now fixed by retrying to send the packet using send_packet() if the destination is not the same as the nexthop. * Make maxmtu equal to minmtu when fixing the path MTU to a node. This ensures MTU probes used to ping nodes are not too large, and prevents restarting MTU probing unnecessarily. * Always reply to MTU probes via UDP. It could sometime happen that a node would return MTU probes via TCP, which does not make a lot of sense. * Allow UDP packets with an address different from the corresponding TCP connection. * Use uint32_t instead of long int for connection options. Options should have a fixed width anyway, but this also fixes a possible MinGW compiler bug where %lx tries to print a 64 bit value, even though a long int is only 32 bits. * Add dummy device. * Clarify and increase level of log message about MTU probes to unreachable nodes. * Handle weighted Subnets in switch and hub modes. We now handle MAC Subnets in exactly the same way as IPv4 and IPv6 Subnets. This also fixes a problem that causes unncessary broadcasting of unicast packets in VPNs where some daemons run 1.0.10 and some run other versions. * Fix a possible crash when sending the HUP signal. When the HUP signal is sent while some outgoing connections have not been made yet, or are being retried, a NULL pointer could be dereferenced resulting in tinc crashing. We fix this by more careful handling of outgoing_ts, and by deleting all connections that have not been fully activated yet at the HUP signal is received. * Fix description of the WEIGHT environment variable. * Include missing header. * Remove debugging message when reading packets from a BSD device. * Allow the cloning /dev/tap interface to be used on FreeBSD and NetBSD. This device works like /dev/tun on Linux, automatically creating a new tap interface when a program opens it. We now pass the actual name of the newly created interface in $INTERFACE. * Use MTU probes to regularly ping other nodes over UDP. This keeps NAT mappings for UDP alive, and will also detect when a node is not reachable via UDP anymore or if the path MTU is decreasing. Tinc will fall back to TCP if the node has become unreachable. If UDP communication is impossible, we stop sending probes, but we retry if it changes its keys. We also decouple the UDP and TCP ping mechanisms completely, to ensure tinc properly detects failure of either method. * Small updates to the documentation. Mention that TCPOnly is not necessary anymore since tinc will autodetect whether it can send via UDP or not. Also mention the WEIGHT environment variable and the new default value (2048 bits) of RSA keys. * Ensure that the texinfo manual can be converted to HTML. The top node was made conditional with the @iftex command, since it should not appear in PostScript and PDF output. However, it is still necessary for texi2html, so we have to use @ifnottex instead. Texi2html also complains about the use of @cindex in the copyright statement, so we remove that. * Revert "Raise default crypto algorithms to AES256 and SHA256." Although it would be better to have the new defaults, only the most recent releases of most of the platforms supported by tinc come with a version of OpenSSL that supports SHA256. To ensure people can compile tinc and that nodes can interact with each other, we revert the default back to Blowfish and SHA1. * Remove code duplication when checking ADD_EDGE/DEL_EDGE messages. * Don't disconnect clients in TunnelServer mode who send unauthorised ADD_SUBNETs. So that we are liberal in what we accept. * Removed last gettext function. * Remove autogenerated files from EXTRA_DIST. Apparently they were once necessary, but autoconf now includes them automatically. Some of them are not used anymore, and this caused make dist to fail. * Update the NEWS. * Add more authors to the copyright headers. Git's log and blame tools were used to find out which files had significant contributions from authors who sent in patches that were applied before we used git. * Drop support for localisation. Localised messages don't make much sense for a daemon, and there is only the Dutch translation which costs time to maintain. * Remove checkpoint tracing. This feature is not necessary anymore since we have tools like valgrind today that can catch stack overflow errors before they make a backtrace in gdb impossible. * K&R style braces. * Update the address of the Free Software Foundation in all copyright headers. * Remove Ivo's old email addresses. * Remove all occurences of $Id$. * Update copyright information. - Update year numbers in copyright headers. - Add copyright information for Michael Tokarev and Florian Forster to the copyright headers of files to which they have contributed significantly. - Mention Michael and Florian in AUTHORS. - Mention that tinc is GPLv3 or later if compiled with the --enable-tunemu flag. * Send large packets we cannot handle properly via TCP. During the path MTU discovery phase, we might not know the maximum MTU yet, but we do know a safe minimum. If we encounter a packet that is larger than that the minimum, we now send it via TCP instead to ensure it arrives. We also allow large packets that we cannot fragment or create ICMP replies for to be sent via TCP. * Raise default RSA key length to 2048 bits. * Use a mutex to allow the TAP reader to process packets faster on Windows. The TAP-Win32 device is not a socket, and select() under Windows only works with sockets. Tinc used a separate thread to read from the TAP-Win32 device, and passed this via a local socket to the main thread which could then select() from it. We now use a global mutex, which is only unlocked when the main thread is waiting for select(), to allow the TAP reader thread to process packets directly. * Remove extra {. * Raise default crypto algorithms to AES256 and SHA256. In light of the recent improvements of attacks on SHA1, the default hash algorithm in tinc is now SHA256. At the same time, the default symmetric encryption algorithm has been changed to AES256. * Use access() instead of stat() for checking whether scripts exist. * Remove dropin random() function, as it is not used anymore. * Allow compiling for Windows XP and higher. This allows us to use getaddrinfo(), getnameinfo() and related functions, which allow tinc to make connections over existing IPv6 networks. These functions are not available on Windows 2000 however. By default, support is enabled, but when compiling for Windows 2000 the configure switch --with-windows2000 should be used. Since getaddrinfo() et al. are not functions but macros on Windows, we have to use AC_CHECK_DECLS() instead of AC_CHECK_FUNCS() in configure.in. * Also do not use drand48(), it is not available on Windows. * Use only rand(), not random(). We used both rand() and random() in our code. Since it returns an int, we have to use %x in our format strings instead of %lx. This fixes a crash under Windows when cross-compiling tinc with a recent version of MinGW. * Apparently it's impolite to ask GCC to subtract two pointers. If two pointers do not belong to the same array, pointer subtraction gives nonsensical results, depending on the level of optimisation and the architecture one is compiling for. It is apparently not just subtracting the pointer values and dividing by the size of the object, but uses some kind of higher magic not intended for mere mortals. GCC will not warn about this at all. Casting to void * is also a no-no, because then GCC does warn that strict aliasing rules are being broken. The only safe way to query the ordering of two pointers is to use the (in)equality operators. The unsafe implementation of connection_compare() has probably caused the "old connection_t for ... still lingering" messages. Our implementation of AVL trees is augmented with a doubly linked list, which is normally what is traversed. Only when deleting an old connection the tree itself is traversed. * Remove superfluous call to avl_delete(). * Handle unicast packets larger than PMTU in switch mode. If PMTUDiscovery is enabled, and we see a unicast packet that is larger than the path MTU in switch mode, treat it just like we would do in router mode. * Allow PMTUDiscovery in switch and hub modes again. PMTUDiscovery was disabled in commit d5b56bbba56480b5565ffb38496175a7c1df60ac because tinc did not handle packets larger than the path MTU in switch and hub modes. We now allow it again in preparation of proper support, but default to off. * Put Subnet weight in a separate environment variable. Commit 5674bba5c54c1aee3a4ac5b3aba6b3ebded91bbc introduced weighted Subnets, but the weight was included in the SUBNET variable passed to subnet-up/down scripts. This makes it harder to use in those scripts. The weight is now stripped from the SUBNET variable and put in the WEIGHT variabel. * Don't stat() on iPhone/iPod. Grzegorz Dymarek noted that tinc segfaults at the stat() call in execute_script() on the iPhone. We can omit the stat() call for the moment, the subsequent call to system() will fail with just a warning. * Add support for iPhones and recent iPods. This is a slightly modified patch from Grzegorz Dymarek that allows tinc to use the tunemu device, which allows tinc to be compiled for iPhones and recent iPods. To enable support for tunemu, the --enable-tunemu option has to be used when running the configure script. * Another safe bitfield conversion. * Add the GPL license to the repository. Tinc is licensed under the GPL version 2 or later. To ensure autoconf does not install the wrong license if COPYING is missing, we have to put the right one in place. * Convert bitfields to integers in a safe way. This is commit eb391c52eed46f3f03b404553df417851fc0cb90 redone, but without the non-standard anonymous union. * Ensure tinc compiles with gcc -std=c99. We use a lot of C99 features already, but also some extensions which are not in the standard. * UNIX signal numbers start at 1. * Replace asprintf() by xasprintf(). * Check the return value of fscanf() when reading a PID file. * Add xasprintf() and xvasprintf(). These functions wrap asprintf() and vasprintf(), and check the return value. If the function failed, tinc will exit with an error message, similar to xmalloc() and friends. * Remove extra semicolon in my definition of setpriority() * Always remove a node from the UDP tree before freeing it. Valgrind caught tinc reading free'd memory during a purge(). This was caused by first removing it from the main node tree, which will already call free_node(), and then removing it from the UDP tree. This might cause spurious segmentation faults. * Change level of some debug messages, zero pointer after freeing hostname. * Do not log errors when recvfrom() returns EAGAIN or EINTR. Although we select() before we call recvfrom(), it sometimes happens that select() tells us we can read but a subsequent read fails anyway. This is harmless. * Remove pending MTU probe events when a node's reachability status changes. * Don't try to send MTU probes to unreachable nodes. If there is an outstanding MTU probe event for a node which is not reachable anymore, a UDP packet would be sent to that node, which caused a key request to be sent to that node, which triggered a NULL pointer dereference. Probes and other UDP packets to unreachable nodes are now dropped. * Properly set HMAC length for incoming packets. * try outgoing connections before chroot/drop_privs When chrooted, we either need to force-initialize resolver and/or nsswitch somehow (no clean way) or resolve all the names we want before entering chroot jail. The latter looks cleaner, easier and it is actually safe because we still don't talk with the remote nodes there, only initiating outgoing connections. * cleanup setpriority thing to make it readable * Add some const where appropriate. * Add ProcessPriority option. This option can be set to low, normal or high. On UNIX flavours, this changes the nice value of the process by +10, 0 and -10 respectively. On Windows, it sets the priority to BELOW_NORMAL_PRIORITY_CLASS, NORMAL_PRIORITY_CLASS and HIGH_PRIORITY_CLASS respectively. A high priority might help to reduce latency and packet loss on the VPN. * src/net_socket.c: Bind outgoing TCP sockets to `BindToAddress'. If a host has multiple addresses on an interface, the source address of the TCP connection(s) was picked by the operating system while the UDP packets used a bound socket, i. e. the source address was the address specified by the user. This caused problems because the receiving code requires the TCP connection and the UDP connection to originate from the same IP address. This patch adds support for the `BindToInterface' and `BindToAddress' options to the setup of outgoing TCP connections. Tested with Debian Etch on x86 and Debian Lenny on x86_64. Signed-off-by: Florian Forster <octo@verplant.org> * src/linux/device.c: Fix segfault when running without `--net'. If running without `--net', the (global) variable `netname' is NULL. This creates a segmentation fault because this NULL-pointer is passed to strdup: Program terminated with signal 11, Segmentation fault. #0 0xb7d30463 in strlen () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0xb7d30463 in strlen () from /lib/tls/i686/cmov/libc.so.6 #1 0xb7d30175 in strdup () from /lib/tls/i686/cmov/libc.so.6 #2 0x0805bf47 in xstrdup (s=0x0) at xmalloc.c:118 <--- #3 0x0805be33 in setup_device () at device.c:66 #4 0x0805072e in setup_myself () at net_setup.c:432 #5 0x08050db2 in setup_network () at net_setup.c:536 #6 0x0805b27f in main (argc=Cannot access memory at address 0x0) at tincd.c:580 This patch fixes this by checking `netname' in `setup_device'. An alternative would be to check for NULL-pointers in `xstrdup' and return NULL in this case. Signed-off-by: Florian Forster <octo@verplant.org> * tunnelserver: log which ADD_SUBNET was refused Add some logging about refused ADD_SUBNET (it causes subsequent client disconnect so it's important to know which subnet was at fault). Maybe we should just ignore it completely. * Do not forward broadcast packets when TunnelServer is enabled. First of all, the idea behind the TunnelServer option is to hide all other nodes from each other, so we shouldn't forward broadcast packets from them anyway. The other reason is that since edges from other nodes are ignored, the calculated minimum spanning tree might not be correct, which can result in routing loops. * Use packet size before decompression to calculate path MTU. Since compression can either grow or shrink a packet, the size of an MTU probe after decompression might not reflect the real path MTU. Now we use the size before decompression, which is independent of the compression algorithm, and substract a safety margin such that the calculated path MTU will be safe even for packets which grow as much as possible after compression. * Add declaration for sockaddrcmp_noport(). * Fix ans_key exchange in recent changes send_ans_key() was using the wrong in vs. outkeylength to terminate the key being sent, so it was always empty. * Use xrealloc instead of if(ptr) ptr = xmalloc(). * Fix initialisation of packet decryption context broken by commit 3308d13e7e3bf20cfeaf6f2ab17228a9820cea66. Instead of a single, global decryption context, each node has its own context. However, in send_ans_key(), the global context was initialised. This commit fixes that and removes the global context completely. Also only set status.validkey after all checks have been evaluated. * don't log every strange packet coming to the UDP port it's a sure way to fill up syslog. Only log those if debug level is up to PROTOCOL * Fix link to Mattias Nissler's tun/tap driver for MacOS/X. * If PMTUDiscovery is not set, do not forward packets via TCP unnecessarily. * ignore indirect edge registrations in tunnelserver mode In tunnelserver mode we're not interested to hear about our client edges, just like in case of subnets. Just ignore all requests which are not about our node or the client node. The fix is very similar to what was done for subnets. Note that we don't need to add the "unknown" nodes to the list in tunnelserver mode too, so move allocation of new nodes down the line. * TunnelServer: Don't disconnect client on DEL_SUBNET too Similar changes as was in 2327d3f6eb5982bcc922ff1ab1ec436ba6aeffdc but for del_subnet_h(). Before, we vere returning false (and causing disconnect of the client) in case of tunnelserver and the client sending DEL_SUBNET for non-his subnet or for subnet which owner isn't in our connection list. After the mentioned change to add_subnet_h() that routine does not add such indirect owners to the connection list anymore, so that was ok (owner == NULL and we return true). But if we too has a connection with the node about which the client is sending DEL_SUBNET notification, say, because that client lost connection with that other node, we'll disconnect this client from us too, returning false for indirect DEL_SUBNET. Fix that by allowing and ignoring indirect DEL_SUBNET in tunnelserver mode. Also rearranged the function a bit, to match add_subnet_h() (in particular, syntax-check everything first, see if we've seen this request before). And also fix some comments. * format 'not supported on this platform' error message Format it in a similar way in all places, to make translation happier. No functional changes. * change error messages in droppriv code to match the rest Change formatting of error messages about failed syscalls to be the same as in other places in tincd. Also suggest a change in "$foo not supported on this platform" message as it's now used more than once. * bugfix: chdir(/) after chroot Fix the famous chdir(".") vs chdir("/") after chroot(something). * bugfix: move mlock to after detach() so it works for child, not parent mlock()/mlockall() are not persistent across fork(), and it's done in parent process before daemon() which does fork(). So basically, current --mlock does nothing useful. Move mlock() to after detach() so it works for child process instead of parent. Also, check if the platform supports mlock right when processing options (since else we'll have to die after startup, not at startup, the error message will be in log only). * bugfix: initialize pid (as read from pidfile) to zero If we didn't read any number from a pid file, we'll return an unitialized variable to the caller, and it will treat that garbage as a pid of a process (possible to kill). Fix that. * Implement privilege dropping Add two options, -R/--chroot and -U/--user=user, to chroot to the config directory (where tinc.conf is located) and to perform setuid to the user specified, after all the initialization is done. What's left is handling of pid file since we can't remove it anymore. * Rename setup_network_connections() and split out try_outgoing_connections() In preparation of chroot/setuid operations, split out call to try_outgoing_connections() from setup_network_connections() (which was the last call in setup_network_connections()). This is because dropping privileges should be done in-between setup_network_connections() and try_outgoing_connections(). This patch renames setup_network_connections() to setup_network() and moves call to try_outgoing_connections() into main routine. No functional changes. * Handle UDP packets from different and ports than advertised. Previously, tinc used a fixed address and port for each node for UDP packet exchange. The port was the one advertised by that node as its listening port. However, due to NAT the port might be different. Now, tinc sends a different session key to each node. This way, the sending node can be determined from incoming packets by checking the MAC against all session keys. If a match is found, the address and port for that node are updated. * Use a simple Random Early Drop algorithm in send_tcppacket(). * Disable PMTUDiscovery in switch and hub modes. In switch and hub modes, tinc does not generate ICMP packets in response to packets that are larger than the path MTU. However, if PMTUDiscovery is enabled, the IP_MTU_DISCOVER and IPV6_MTU_DISCOVER option is set on the UDP sockets, which causes all UDP packets to be sent with the DF bit set, causing large packets to be dropped, even if they would otherwise be routed fine. * Update THANKS and copyright information. * Allow weight to be assigned to Subnets. Tinc allows multiple nodes to own the same Subnet, but did not have a sensible way to decide which one to send packets to. Tinc also did not check the reachability of nodes when deciding where to route packets to, so it would not automatically fail over to a reachable node. Tinc now assigns a weight to each Subnet. The default weight is 10, with lower weights having higher priority. The Subnets are now internally sorted in the same way as the kernel's routing table, and the Subnets are search linearly, skipping those of unreachable nodes. A small cache of recently used addresses is used to speed up the lookup functions. * Enable PMTUDiscovery only if BOTH sides wants it. Don't enable PMTUDiscovery if at least one side does not support it. Before it was enabled if at least one side supported it, now both are required. * Handle neighbor solicitation requests without link layer addresses. Apparently FreeBSD likes to send out neighbor solicitation requests, even on a tun interface where this is completely pointless. These requests do not have an option header containing a link layer address, so the proxy-neighborsol code was treating these requests as invalid. We now handle such requests, and send back equally pointless replies, also without a link layer address. This seems to satisfy FreeBSD. * Allow tunnelserver to work with clients that have other peers. In TunnelServer mode, tinc server disconnects any client if it announces indirect subnets -- subnets that are not theirs (e.g. subnets for nodes the CLIENT has connections now, even if those nodes are known to the server too). Fix that by ignoring such (indirect) announces instead. While we're at it, move check for such indirect subnet registration to before allocating new node structure, as in TunnelServer mode we don't really need to know that other node. * Disable old RSA keys when generating new ones. When generating an RSA keypair, the new public and private keys are appended to files. However, when OpenSSL reads keys it only reads the first in a file, not the last. Instead of printing an easily ignored warning, tinc now disables old keys when appending new ones. * Validate Name before using it in a filename when generating a keypair. * Allow reading config files with CRLF endings on Unix systems. * Remove unused definitions from net.h. * Use a global list to track outgoing connections. Previously an outgoing_t was maintained for each outgoing connection, but the pointer to it was either stored in a connection_t or in an event_t. This made it very hard to keep track of and to clean up. Now a list is created when tinc starts and reads all the ConnectTo variables, and which is recreated when tinc receives a HUP signal. * Add missing cleanup functions in close_network_connections(). * Change flush_events() to expire_events(). The former function made a totally bogus shallow copy of the event_tree, called the handler of each event and then deleted the whole tree. This should've caused tinc to crash when an ALARM signal was sent more than once, but for some reason it didn't. It also behaved incorrectly when a handler added a new event. The new function just moves the expiration time of all events to the past. * Move free()s at the end om main() to the proper destructor functions. * Only send packets via UDP if UDP communication is possible. When no session key is known for a node, or when it is doing PMTU discovery but no MTU probes have returned yet, packets are sent via TCP. Some logic is added to make sure intermediate nodes continue forwarding via TCP. The per-node packet queue is now no longer necessary and has been removed. * Consistently allocate device and iface variables on the heap. This fixes a segfault when no Device has been specified and tinc exits, and it would try to free() a static string. Thanks to Borg for spottin. * Update documentation for git.
2010-05-01Haven't used this in a long time, release maintainershipabs1-2/+2
2010-04-23Update to 4.0.3:wiz2-6/+6
--- 4.0.3 2010/04/09 Handle HTTP redirect for SRU GET in yaz-client and ZOOM C. Based on patch from Giannis Kosmas. SRU: no longer URL encode SRU database. The URL for an SRU server is a URL and such is alreeady encoded - at least when given with leading http:// or https://. This reverts behavior to YAZ 3.0.50. Support for new MARC XML notation TurboMARC which like MARCXML is a complete representation of MARC/ISO2709.. This one, however, is more compact and allows for faster processing with XSLT. TurboMARC can be used in the marcdisp.h API, from the yaz-marcdump utility and from the API of ZOOM C. yaz-ztest can be configured - via the database - to perform certain delays when it performs operations search, present and single record fetch. This allows testers to make yaz-ztest act as a real or even slow Z39.50 server. Refer to the yaz-ztest man pages for details.
2010-04-23Accept all 3.11.* versions of ocaml.wiz2-6/+6
2010-04-22Disable kqueue on Dragonfly to make bind96 work.gls1-1/+5
As reported by Justin Sherrill in PR pkg/43195. Bump PKGREVISION.
2010-04-22Disable kqueue on Dragonfly to make bind95 work.gls1-1/+6
As reported by Justin Sherrill in PR pkg/43195. Bump PKGREVISION.
2010-04-22Update pear-Net_Sieve package to 1.2.1.taca2-6/+6
Changelog: * Fix DIGEST-MD5 authentication with Dovecot (Stef Simoens, Bug #17320).
2010-04-22Regen.joerg1-3/+17
2010-04-21Import parpd-1.5 which fixes a possible free to unassigned memory.roy2-6/+6
2010-04-19Add & enable p5-Net-Server-Coroseb1-1/+2
2010-04-19Initial import of p5-Net-Server-Coro version 0.8 in the NetBSDseb3-0/+34
Packages Collection. The Perl 5 module Net::Server::Coro implements multithreaded server for the Net::Server architecture, using Coro and Coro::Socket to make all reads and writes non-blocking. Additionally, it supports non-blocking SSL negotiation.
2010-04-19Ooops! Wrong directory! this package is going to be imported againseb4-36/+1
as net/p5-Net-Server-Coro.
2010-04-19Add & enable p5-Net-Server-Coroseb1-1/+2
2010-04-19Initial import of p5-Net-Server-Coro version 0.8 in the NetBSDseb3-0/+34
Packages Collection. The Perl 5 module Net::Server::Coro implements multithreaded server for the Net::Server architecture, using Coro and Coro::Socket to make all reads and writes non-blocking. Additionally, it supports non-blocking SSL negotiation.
2010-04-19Update csup to csup-snap-20100404zafer5-54/+43
Changelog since 20070216: Its part the FreeBSD base system. http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.bin/csup/
2010-04-19Update socat to 1.7.1.2zafer2-7/+6
Changelog: corrections: user-late and group-late, when applied to a pty, affected the system device /dev/ptmx instead of the pty (thanks to Matthew Cloke for pointing me to this bug) socats openssl addresses failed with "nonblocking operation did not complete" when the peer performed a renegotiation. Thanks to Benjamin Delpy for reporting this bug. info message during socks connect showed bad port number on little endian systems due to wrong byte order (thanks to Peter M. Galbavy for bug report and patch) Debian bug 531078: socat execs children with SIGCHLD ignored; corrected to default. Thanks to Martin Dorey for reporting this bug. porting: building socat on systems that predefined the CFLAGS environment to contain -Wall failed (esp.RedHat). Thanks to Paul Wouters for reporting this problem and to Simon Matter for providing the patch support for Solaris 8 and Sun Studio support (thanks to Sebastian Kayser for providing the patches) on some 64bit systems a compiler warning "cast from pointer to integer of different size" was issued on some option definitions added struct sockaddr_ll to union sockaddr_union to avoid "strict aliasing" warnings (problem reported by Paul Wouters) docu: minor corrections in docu
2010-04-19provide mirrorzafer1-2/+2
2010-04-18Update ncftp3 to 3.2.4. Add LICENSE.zafer4-27/+28
Change Log: 3.2.4, 2010-04-07 * Ncftpget and ncftpput can now read $HOME/.ncftp/bookmarks and take a bookmark name in place of a hostname. If the hostname specified is not fully qualified (i.e. does not contain a period), then bookmarks will be queried; if no bookmarks match, then a local hostname is assumed. Bookmarks are also queried for the config file option, -f, when the file specified by -f does not exist. * Compatibility fixes for FreeBSD 8. * Support for local validation of DNSSEC when combined with libraries available from the DNSSEC Tools project (Thanks, Robert Story). * Microsoft disabled recursive directory listings altogether when fixing KB975254 (Thanks, Andrew Coggeshall). When entire directories are downloaded, instead of using "LIST -R" for one efficient listing of all files, the directories are manually traversed with one directory listing for each subdirectory. This will improve reliability of recursive downloads, except for the case when their are circular symbolic links (which is why "LIST -R" had been favored, which the server can easily handle). * Compatibility fixes for Mac OS X for building from source code (Thanks, Mathieu Rene) the complete changelog is available here: http://www.ncftp.com/ncftp/doc/changelog.html
2010-04-18barnyard has moved to sourceforge. update master_sites.zafer1-2/+2
2010-04-17Update py-adns to 1.2.1.obache3-18/+15
Inspired by PR#43127 from Wen Heping. While here, set LICENSE. ------------------------------------------------------------------------ r19 | farcepest | 2007-01-27 14:14:20 -0500 (Sat, 27 Jan 2007) | 2 lines Fixes issues #4 and #5 ------------------------------------------------------------------------ r16 | farcepest | 2007-01-01 13:52:48 -0500 (Mon, 01 Jan 2007) | 1 line Fix hostname dereferencing of SRV records ------------------------------------------------------------------------ r9 | farcepest | 2006-12-31 13:08:02 -0500 (Sun, 31 Dec 2006) | 2 lines Fix issues #2 and #3. Requires adns-1.2 and newer. ------------------------------------------------------------------------ r7 | farcepest | 2006-12-02 14:26:22 -0500 (Sat, 02 Dec 2006) | 2 lines Removed generated files ------------------------------------------------------------------------ r6 | farcepest | 2006-12-02 13:39:41 -0500 (Sat, 02 Dec 2006) | 2 lines Bump version, update metadata ------------------------------------------------------------------------ r5 | farcepest | 2006-12-02 13:04:48 -0500 (Sat, 02 Dec 2006) | 2 lines Fix issue #1 (memory leak) ------------------------------------------------------------------------ r4 | farcepest | 2006-12-01 17:24:51 -0500 (Fri, 01 Dec 2006) | 2 lines Update README, especially fixing restructured text ------------------------------------------------------------------------ r2 | farcepest | 2006-12-01 16:50:38 -0500 (Fri, 01 Dec 2006) | 2 lines Initial import of adns-python-1.1.0 ------------------------------------------------------------------------ r1 | (no author) | 2006-12-01 16:45:29 -0500 (Fri, 01 Dec 2006) | 1 line Initial directory structure. ------------------------------------------------------------------------
2010-04-17Update adns to 1.4.obache10-63/+54
Inspired by PR#43126 from Wen Heping. While here, set LICENSE and TEST_TARGET. adns (1.4); urgency=low Improvements for multithreaded programs: * New documentation comment in adns.h explaining thread guarantees (or lack of them), replaces `single-threaded' note at the top. * Fix string conversion of adns_r_addr not to use a static buffer (function csp_addr) so as to make thread promise true. * Make an internal variable const-correct (expectdomain in pa_ptr). -- Ian Jackson <ian@davenant.greenend.org.uk> Tue, 17 Oct 2006 17:05:08 +0100 adns (1.3); urgency=low Portability fixes: * Cast ptrdiff_t to int for %.*s length in adnsheloex and adnslogres, as is required. (Report from Jim Meyering.) * In configure.in, quote macro name argument to define() to suppress spurious autoconf error. (Report from Mihai Ibanescu.) * Use autoconf's values for {bin,lib,include}dir rather than inventing our own from @exec_prefix@, making configure --libdir work. (Patch from Mihai Ibanescu.) * Remove spurious `_' from {bin,lib,include}dir Makefile variables. (Report from Mihai Ibanescu.) * Do away with `mismatch' variable in parse.c:adns__findrr_anychk so that overzealous GCC cannot complain about members of eo_fls being uninitialised. (Report from Jim Meyering.) -- Ian Jackson <ian@davenant.greenend.org.uk> Tue, 6 Jun 2006 20:22:30 +0100 adns (1.2); urgency=medium New features: * Support for SRV RRs. * Support for unknown RR types (according to RFC3597) via adns_r_unknown. * Allow `;'-comments in resolv.conf (report from Colin Charles). * New adnsheloex client courtesy of Tony Finch. * New adns_init_logfn etc. for having logging use a callback function. Bugfixes: * Fix error in prototype in definition of adns__parse_domain. * Add missing ENOTSOCK to hcommon.c.m4 (was already in hcommon.c!) Portability fixes prompted by Bernd Eckenfels, the Debian maintainer: * Correct type of various printf arguments: ptrdiff_t != int. * Do not print size of leaked blocks of memory (this causes a spurious regression test failure on some platforms). * Provide adns_if_none and adns_qf_none (which will help with compilers which complain about plain `0' being passed where an enum is wanted). * adnstest converts some errno values to EFOOBAR: all of the ones mentioned in adns.h, at least. This makes the regression test more portable (fixes problem noticed by Bernd Eckenfels). * Add -Wno-pointer-sign if GCC has that option. Documentation improvements: * Add documentation comment by definition of adns_r_ptr_raw type enum. * Document in adns.h EINVAL from adns_init meaning bad configuration. * Include several new references to related programs to README.html. * Redacted the TODO list. * New LICENCE.WAIVERS file for GPL-incompatility workarounds. * Clarified GPL-vs-LGPL: a bit less hostile and a bit more mercenary. * Copyright notices updated. Packaging changes: * Update MINOR to 2 and DISTVERSION and ADNS_VERSION_STRING to 1.2. * Reran autoconf/autoheader (autoconf Debian 2.13-54). * Create $(bin_dir) and $(lib_dir) on `make install', and also make a libadns.so.1 -> libadns.so.1.<minor> link. (Suggestions and patch from Nix of esperi.org.uk.) * Add .PHONY: install to Makefile, to help people with demented fs's. * Darwin listed in INSTALL. Minor test harness improvements: * Hgettimeofday calls Tensurerecordfile (was Tensureinput/outputfile). * Add bind(2) and listen(2) wrappers (for epithet, but harmless in adns). -- Ian Jackson <ian@davenant.greenend.org.uk> Sat, 8 Apr 2006 15:41:28 +0100
2010-04-17remove pacnet mirror. service down.zafer1-3/+2
2010-04-15+ libbindobache1-1/+2
2010-04-15Import libbind-6.0 as net/libbind.obache7-0/+162
ISC's libbind provides the standard resolver library, along with header files and documentation, for communicating with domain name servers, retrieving network host entries from /etc/hosts or via DNS, converting CIDR network addresses, perform Hesiod information lookups, retrieve network entries from /etc/networks, implement TSIG transaction/request security of DNS messages, perform name-to-address and address-to-name translations, utilize /etc/resolv.conf for resolver configuration. It contains many of the same historical functions and headers included with many Unix operating systems. Originally written for BIND 8, it was included in BIND 9 as optionally-compiled code through release 9.5. It has been removed from subsequent releases of BIND 9 and is now provided as a separate package.
2010-04-15Bump PKGREVISION due to removing -B flag from winbindd rc.d scriptsborrill2-3/+4
2010-04-15winbindd does not have a -B flag. As far as I can see, it never did havesborrill1-2/+1
(It was added to this rc.d script as part of the upgrade to 3.0.20b, but winbindd in 3.0.20b does not have a -B flag).
2010-04-14adding a message + Makefile beautificationspz2-25/+41
2010-04-14Add openssl bl3.mk file so that we play nicely with PREFER_PKGSRC+=opensslsborrill2-2/+4
2010-04-14Makefile style improvementsspz1-15/+16
2010-04-13update to irrtoolset5 release versionspz2-11/+10
updating LICENSE
2010-04-13Update to 3.0.713 from maintainer.morr2-6/+7
Changes: - Don't require --verbose for pcap_stats. - Survive interface going down on Linux. - Support DLT_RAW, implemented by Anton S. Ustyuzhanin. - Skip accounting for hosts or ports if their max is set to zero. - Implement --hexdump for troubleshooting. - Web: Implement --no-lastseen - Implement --snaplen manual override. - Fix snaplen problem on recent (1-2 years?) Linux kernels. - Implement --syslog - Implement --wait as a NetworkManager workaround.
2010-04-13update to 0.8.14drochner2-6/+6
changes: minor cleanup
2010-04-12Update p5-IO-Socket-INET6 from version 2.57 to version 2.61.seb2-7/+7
Pkgsrc changes: - Adjust dependencies Upstream changes: 2010-03-25 Shlomi Fish <shlomif@iglu.org.il> * Fix the inet_pton / inet_ntop import warnings: - https://rt.cpan.org/Ticket/Display.html?id=55901 - Thanks to Todd Rinaldo for the patch. * Fix listening on :: or 0.0.0.0 - a random address instead of the specified would be used. Added test listen_port_only.t - Regression from 2.57: - https://rt.cpan.org/Ticket/Display.html?id=54656 - Thanks to Steffen Ullrich for the patch. * New Release IO-Socket-INET6-2.60 * Fixes to t/listen_port_only.t. * New Release IO-Socket-INET6-2.61 2010-03-19 Shlomi Fish <shlomif@iglu.org.il> * Syntax change to adapt for older Perls: - https://rt.cpan.org/Ticket/Display.html?id=54656 - Thanks to paul. * New Release IO-Socket-INET6-2.59 2010-03-18 Shlomi Fish <shlomif@iglu.org.il> * Applied a patch by Steffen Ullrich, fixing: https://rt.cpan.org/Ticket/Display.html?id=54656 * New Release IO-Socket-INET6-2.58
2010-04-11Add & enable p5-Net-Server-SS-PreForkseb1-1/+2
2010-04-11Initial import of p5-Net-Server-SS-PreFork version 0.05 in theseb3-0/+35
NetBSD Packages Collection. The Perl 5 module Net::Server::SS::PreFork is Net::Server personality, extending Net::Server::PreFork, that can be run by the start_server script of Server::Starter.
2010-04-11Add & enable nagstamonimil1-1/+2
2010-04-11Initial import of nagstamon, version 0.9.2, into the NetBSD Packages Collection.imil5-0/+157
Nagstamon is a Nagios status monitor for the desktop inspired by Nagios Checker for Firefox. It connects to multiple Nagios servers and resides in systray or as a floating statusbar at the desktop showing a brief summary of critical, warning, unknown, unreachable and down hosts and services and pops up a detailed status overview when moving the mouse pointer over it. Connecting to displayed hosts and services is easily established by context menu via SSH, RDP and VNC. Users can be notified by sound. Hosts and Services can be filtered by category and regular expressions.
2010-04-10Update kmldonkey to 2.0.2.4.4.0markd3-8/+13
Version from kde4 extragear. Additional locales supported, otherwise changes unknown.
2010-04-10Update KDE to 4.4.2markd4-35/+80
For 4.4.0 major new technologies have been introduced, including social networking and online collaboration features, a new netbook-oriented interface and infrastructural innovations such as the KAuth authentication framework. According to KDE's bug-tracking system, 7293 bugs have been fixed and 1433 new feature requests were implemented. KDE SC 4.4.1 has a number of improvements: A performance problem in KMail when sending emails has been fixed Various fixes in Plasma widgets and other addons, such as the analog clock and the picture frame A number of fixes in Konsole, KDE's powerful terminal application KDE SC 4.4.2 has a number of improvements: Possible crashes in Plasma, Dolphin and Okular have been fixed The Microblog applet now shows the correct time in the timeline The audioplayer KRunner plugin has been fixed to not freeze the KRunner UI anymore