On 08/09/18 14:18, Julian Orth wrote:
> Even with clang's -Weverything I don't get a warning when I compile the
> following:
>
> #include
>
> int f(unsigned int i);
>
> int f(unsigned int i)
> {
> return i <= UINT32_MAX;
> }
Interesting... I don't either (gcc 8, clang 8). Perhaps I've been
On 9/8/18 4:09 PM, Aaron Jones wrote:
On 08/09/18 12:18, Julian Orth wrote:
+static bool parse_transit_net(struct wgdevice *device, const char *arg)
+{
+ /* U32 arg -> PID */
+ if (isdigit(*arg)) {
+ char *end;
+ unsigned long pid = strtoul(arg, &end, 10);
On 08/09/18 12:18, Julian Orth wrote:
> +static bool parse_transit_net(struct wgdevice *device, const char *arg)
> +{
> + /* U32 arg -> PID */
> + if (isdigit(*arg)) {
> + char *end;
> + unsigned long pid = strtoul(arg, &end, 10);
> + if (!*end && pid <=
On 08/09/18 12:18, Julian Orth wrote:
> +static bool parse_transit_net(struct wgdevice *device, const char *arg)
> +{
> + /* U32 arg -> PID */
> + if (isdigit(*arg)) {
> + char *end;
> + unsigned long pid = strtoul(arg, &end, 10);
> + if (!*end && pid <=
The command is
wg set [...] transit-net [...]
For example:
wg set wg0 transit-net 1
wg set wg0 transit-net /proc/1/ns/net
---
src/tools/config.c | 32
src/tools/containers.h | 6 +-
src/tools/ipc.c| 4
src/tools/man/wg.8 | 9 +++