Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add SPDX-License-Identifier headers #99

Merged
merged 1 commit into from
Jul 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,6 @@ The latest revision of slirp4netns is regularly benchmarked (`make benchmark`) o

## Acknowledgement
See [`vendor/README.md`](./vendor/README.md).

## License
[GPL-2.0-or-later](COPYING)
1 change: 1 addition & 0 deletions api.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
Expand Down
1 change: 1 addition & 0 deletions api.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef SLIRP4NETNS_API_H
# define SLIRP4NETNS_API_H
int api_bindlisten(const char *api_socket);
Expand Down
1 change: 1 addition & 0 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#define _GNU_SOURCE
#include "config.h"
#include <stdio.h>
Expand Down
12 changes: 9 additions & 3 deletions slirp4netns.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#define _GNU_SOURCE
#include <errno.h>
#include <signal.h>
Expand Down Expand Up @@ -80,7 +81,8 @@ static void libslirp_register_poll_fd(int fd, void *opaque)
/*
* NOP
*
* This is NOP on QEMU upstream on Linux as well, see:
* This is NOP on QEMU@4c76137484878f42a2ce1ae1b888b6a7f66b4053 on Linux as
* well, see:
* * qemu/net/slirp.c: net_slirp_register_poll_fd (calls
* qemu_fd_register)
* * qemu/stubs/fd-register.c: qemu_fd_register (NOP on Linux)
Expand All @@ -96,7 +98,8 @@ static void libslirp_unregister_poll_fd(int fd, void *opaque)
/*
* NOP
*
* This is NOP on QEMU upstream as well, see:
* This is NOP on QEMU@4c76137484878f42a2ce1ae1b888b6a7f66b4053 as well,
* see:
* * qemu/net/slirp.c: net_slirp_unregister_poll_fd (NOP)
*/
}
Expand All @@ -107,7 +110,8 @@ static void libslirp_notify(void *opaque)
/*
* NOP
*
* This can be NOP on QEMU upstream as well, see:
* This can be NOP on QEMU@4c76137484878f42a2ce1ae1b888b6a7f66b4053 as well,
* see:
* * qemu/net/slirp.c: net_slirp_notify (calls qemu_notify_event)
* * qemu/stubs/notify-event.c: qemu_notify_event (NOP)
*
Expand Down Expand Up @@ -141,6 +145,7 @@ static int libslirp_poll_to_gio(int events)
/*
* implements SlirpAddPollCb used in slirp_pollfds_fill.
* originally from qemu/net/slirp.c:net_slirp_add_poll
* (4c76137484878f42a2ce1ae1b888b6a7f66b4053)
*/
static int libslirp_add_poll(int fd, int events, void *opaque)
{
Expand Down Expand Up @@ -178,6 +183,7 @@ static int libslirp_gio_to_poll(int events)
/*
* implements SlirpGetREventsCB used in slirp_pollfds_poll
* originally from qemu/net/slirp.c:net_slirp_get_revents
* (4c76137484878f42a2ce1ae1b888b6a7f66b4053)
*/
static int libslirp_get_revents(int idx, void *opaque)
{
Expand Down
1 change: 1 addition & 0 deletions slirp4netns.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* SPDX-License-Identifier: GPL-2.0-or-later */
#ifndef SLIRP4NETNS_H
# define SLIRP4NETNS_H
#include <arpa/inet.h>
Expand Down