Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | tun-device: Include <linux/types.h> before <linux/if_tun.h> | Martin Willi | 2013-11-22 | 1 | -0/+1 |
| | | | | Fixes a build error on CentOS 6.4. | ||||
* | Use exact mask when calling umask(2) | Tobias Brunner | 2013-10-29 | 1 | -1/+1 |
| | | | | | | Due to the previous negation the high bits of the mask were set, which at least some versions of the Android build system prevent with a compile-time check. | ||||
* | tun_device: Add warning if TUN devices are not supported by platform | Tobias Brunner | 2013-09-12 | 1 | -2/+16 |
| | |||||
* | host: Properly initialize struct sockaddr_in[6] when parsing strings | Tobias Brunner | 2013-07-31 | 1 | -0/+2 |
| | | | | | Otherwise struct members like sin6_flowinfo or sin6_scope_id might be set to bogus values. | ||||
* | stream: Ensure UNIX socket path is null terminated | Tobias Brunner | 2013-07-24 | 1 | -0/+1 |
| | |||||
* | host: Prevent overflow in host_create_netmask() if mask is 0 or 32/128 | Tobias Brunner | 2013-07-24 | 1 | -5/+7 |
| | |||||
* | Fix various API doc issues and typos | Tobias Brunner | 2013-07-18 | 1 | -2/+3 |
| | | | | Partially based on an old patch by Adrian-Ken Rueegsegger. | ||||
* | stream-service: move CAP_CHOWN check from plugins to service constructor | Martin Willi | 2013-07-18 | 1 | -0/+5 |
| | | | | | A plugin service can be a TCP socket now, so it does not make much sense to strictly check for CAP_CHOWN. | ||||
* | stream: allow async read/write callback to destroy the stream explicitly | Martin Willi | 2013-07-18 | 2 | -10/+15 |
| | |||||
* | stream: don't close underlying socket when creating a stream from it | Martin Willi | 2013-07-18 | 1 | -1/+6 |
| | |||||
* | stream: support keeping the service alive outside of service callback | Martin Willi | 2013-07-18 | 2 | -4/+5 |
| | |||||
* | stream: add read/write_all() methods to stream | Martin Willi | 2013-07-18 | 2 | -2/+73 |
| | |||||
* | stream: support cancellation of stream service callback | Martin Willi | 2013-07-18 | 1 | -2/+3 |
| | |||||
* | stream: use a service constructor to create services | Martin Willi | 2013-07-18 | 2 | -77/+8 |
| | | | | | | It does not make much sense to reference running services in the manager, especially as unregistration would need the URI (which a user would have to store instead of the service reference). | ||||
* | stream: replace print/vprint() convenience functions by a FILE* getter | Martin Willi | 2013-07-18 | 2 | -51/+20 |
| | | | | | While this will complicate the implementation of streams not based on a fd, it allows us to unleash the full power of FILE based convenience functions. | ||||
* | stream: add a concurrency option to services, limiting parallel callbacks | Martin Willi | 2013-07-18 | 4 | -7/+71 |
| | |||||
* | stream: add a job priority option to stream services | Martin Willi | 2013-07-18 | 4 | -7/+24 |
| | |||||
* | stream: add backlog option to stream services, forward to listen() | Martin Willi | 2013-07-18 | 4 | -11/+15 |
| | |||||
* | stream: add support for TCP stream services | Martin Willi | 2013-07-18 | 3 | -0/+53 |
| | |||||
* | stream: add support for TCP streams | Martin Willi | 2013-07-18 | 3 | -2/+108 |
| | |||||
* | stream: add support for UNIX stream services | Martin Willi | 2013-07-18 | 3 | -0/+61 |
| | |||||
* | stream: add support for UNIX streams | Martin Willi | 2013-07-18 | 3 | -0/+77 |
| | |||||
* | stream: support async operation using watcher | Martin Willi | 2013-07-18 | 2 | -0/+142 |
| | |||||
* | stream: add printf()-style covenience functions | Martin Willi | 2013-07-18 | 2 | -1/+60 |
| | |||||
* | stream: create library instance of stream-manager | Martin Willi | 2013-07-18 | 3 | -5/+2 |
| | |||||
* | stream: add a manager to dynamically register streams and services | Martin Willi | 2013-07-18 | 2 | -0/+386 |
| | |||||
* | stream: add a stream service class abstracting services using BSD sockets | Martin Willi | 2013-07-18 | 2 | -0/+235 |
| | |||||
* | stream: add a stream class abstracting BSD sockets | Martin Willi | 2013-07-18 | 2 | -0/+202 |
| | | | | | Currently only synchronous operation is supported, but this will be extended with asynchronous methods using the new watcher. | ||||
* | tun-device: Packets sent over utun devices on Mac OS X have the protocol ↵ | Tobias Brunner | 2013-06-21 | 1 | -0/+11 |
| | | | | family prepended | ||||
* | tun-device: Avoid opening /dev/tunX multiple times (e.g. on FreeBSD) | Tobias Brunner | 2013-06-21 | 1 | -2/+6 |
| | |||||
* | host-resolver: don't try to resolve a plain v4 address to an IPv6 address | Volker Rümelin | 2013-05-16 | 1 | -3/+17 |
| | | | | | Suppress 'Address family for hostname not supported' errors if a IPv6 client connects in a mixed IPv4/IPv6 environment. | ||||
* | tun_device: add a getter for the address previously passed to set_address() | Martin Willi | 2013-05-06 | 2 | -0/+32 |
| | |||||
* | tun_device: add a getter for the underlying file descriptor | Martin Willi | 2013-05-06 | 2 | -0/+14 |
| | |||||
* | tun-device: use host_create_netmask() to calculate interface netmask | Martin Willi | 2013-05-06 | 1 | -49/+12 |
| | |||||
* | host: add a netmask constructor taking the number of network bits | Martin Willi | 2013-05-06 | 2 | -0/+57 |
| | |||||
* | host: remove unused host_t.get_differences() method | Martin Willi | 2013-05-06 | 2 | -39/+0 |
| | |||||
* | host: print %#H format specifiers not as %any, but with the port | Martin Willi | 2013-05-06 | 1 | -1/+1 |
| | |||||
* | host: initialize sockaddr->sa_len if it is available | Martin Willi | 2013-05-06 | 1 | -0/+14 |
| | |||||
* | Add a DSCP value with getter/setter on packet_t | Martin Willi | 2013-02-06 | 2 | -0/+33 |
| | |||||
* | Set sockaddr family on ifreq instead of casted familiy specific sockaddr | Martin Willi | 2013-02-06 | 1 | -2/+2 |
| | | | | Fixes a strict-aliasing rule compiler warning with older gcc. | ||||
* | Don't use pointer to a union member in host_create_from_string_and_family() | Tobias Brunner | 2013-01-25 | 1 | -5/+4 |
| | |||||
* | Respect given address family when resolving "%any" | Martin Willi | 2013-01-14 | 1 | -1/+5 |
| | |||||
* | Consolidated %any(6) host_t parsing | Martin Willi | 2012-11-29 | 2 | -12/+14 |
| | |||||
* | Remove numeric conversion from resolver, it is done directly in host_t | Martin Willi | 2012-11-29 | 1 | -32/+0 |
| | |||||
* | host_create_from_dns() tries a numeric conversion before asking resolver | Martin Willi | 2012-11-29 | 1 | -1/+5 |
| | |||||
* | Add a host_t constructor from string, but with a specific family | Martin Willi | 2012-11-29 | 2 | -35/+48 |
| | |||||
* | Moved debug.[ch] to utils folder | Tobias Brunner | 2012-10-24 | 3 | -3/+3 |
| | |||||
* | Moved chunk_t to utils folder | Tobias Brunner | 2012-10-24 | 1 | -1/+1 |
| | |||||
* | Moved data structures to new collections subfolder | Tobias Brunner | 2012-10-24 | 1 | -2/+2 |
| | |||||
* | Moved packet_t and tun_device_t to networking folder | Tobias Brunner | 2012-10-24 | 4 | -0/+857 |
| |