wireguard-tools/contrib/embeddable-wg-library
Jason A. Donenfeld 54569b7999 netlink: do not stuff index into nla type
It's not used for anything, and LKML doesn't like the type being used as
an index value.

Suggested-by: Eugene Syromiatnikov <esyr@redhat.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-08 03:14:52 +02:00
..
.gitignore contrib: add embeddable wireguard library 2018-02-17 05:55:03 +01:00
Makefile contrib: add embeddable wireguard library 2018-02-17 05:55:03 +01:00
README contrib: add embeddable wireguard library 2018-02-17 05:55:03 +01:00
test.c global: put SPDX identifier on its own line 2018-09-20 19:41:22 +02:00
wireguard.c netlink: do not stuff index into nla type 2018-10-08 03:14:52 +02:00
wireguard.h global: put SPDX identifier on its own line 2018-09-20 19:41:22 +02:00

Embeddable WireGuard C Library
==============================

This is a mini single-file library, meant to be embedded directly into the
source code of your program. It is *not* meant to be built as a shared
library.


Usage
-----

Copy wireguard.c and wireguard.h into your project. They should build with
any C89 compiler. There are no dependencies except libc.

Please see the set of simple functions in wireguard.h for information on
how to use, as well as the example code in test.c.


License
-------

Because this uses code from libmnl, wireguard.c and wireguard.h are licensed
under the LGPL-2.1+.