Signed-off-by: Stefan Schmidt <stefan@xxxxxxxxxxxxxxxxxx> --- examples/.gitignore | 4 ++++ examples/Makefile.am | 4 ++++ examples/README.examples | 4 ++++ examples/af_ieee802154_rx.c | 23 ++++------------------- examples/af_ieee802154_tx.c | 23 ++++------------------- examples/af_inet6_rx.c | 23 ++++------------------- examples/af_inet6_tx.c | 23 ++++------------------- examples/af_packet_rx.c | 23 ++++------------------- examples/af_packet_tx.c | 23 ++++------------------- 9 files changed, 36 insertions(+), 114 deletions(-) diff --git a/examples/.gitignore b/examples/.gitignore index 845e803..3dad378 100644 --- a/examples/.gitignore +++ b/examples/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2016 Samsung Electronics Co., Ltd. +# +# SPDX-License-Identifier: ISC + /.deps /af_ieee802154_rx /af_ieee802154_tx diff --git a/examples/Makefile.am b/examples/Makefile.am index b475c1f..00bd991 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: 2016 Samsung Electronics Co., Ltd. +# +# SPDX-License-Identifier: ISC + noinst_PROGRAMS = af_ieee802154_tx \ af_ieee802154_rx \ af_packet_tx \ diff --git a/examples/README.examples b/examples/README.examples index 11e9424..bf69c90 100644 --- a/examples/README.examples +++ b/examples/README.examples @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: 2016 Samsung Electronics Co., Ltd. +// +// SPDX-License-Identifier: ISC + This folder contains various examples on how the Linux-wpan stack can be used from userspace, using the Linux socket interface. diff --git a/examples/af_ieee802154_rx.c b/examples/af_ieee802154_rx.c index 86ba707..4bfd7b6 100644 --- a/examples/af_ieee802154_rx.c +++ b/examples/af_ieee802154_rx.c @@ -1,23 +1,8 @@ -/* - * IEEE 802.15.4 socket example - * - * Copyright (C) 2016 Samsung Electronics Co., Ltd. - * - * Author: Stefan Schmidt <stefan@xxxxxxxxxxxxxxx> - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ +// SPDX-FileCopyrightText: 2016 Samsung Electronics Co., Ltd. +// +// SPDX-License-Identifier: ISC +/* IEEE 802.15.4 socket example */ /* gcc af_ieee802154_rx.c -o af_ieee802154_rx */ #include <sys/types.h> diff --git a/examples/af_ieee802154_tx.c b/examples/af_ieee802154_tx.c index faad17e..7cbc8a1 100644 --- a/examples/af_ieee802154_tx.c +++ b/examples/af_ieee802154_tx.c @@ -1,23 +1,8 @@ -/* - * IEEE 802.15.4 socket example - * - * Copyright (C) 2016 Samsung Electronics Co., Ltd. - * - * Author: Stefan Schmidt <stefan@xxxxxxxxxxxxxxx> - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ +// SPDX-FileCopyrightText: 2016 Samsung Electronics Co., Ltd. +// +// SPDX-License-Identifier: ISC +/* IEEE 802.15.4 socket example */ /* gcc af_ieee802154_tx.c -o af_ieee802154_tx */ #include <sys/types.h> diff --git a/examples/af_inet6_rx.c b/examples/af_inet6_rx.c index d512471..525e68d 100644 --- a/examples/af_inet6_rx.c +++ b/examples/af_inet6_rx.c @@ -1,23 +1,8 @@ -/* - * IEEE 802.15.4 socket example - * - * Copyright (C) 2016 Samsung Electronics Co., Ltd. - * - * Author: Stefan Schmidt <stefan@xxxxxxxxxxxxxxx> - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ +// SPDX-FileCopyrightText: 2016 Samsung Electronics Co., Ltd. +// +// SPDX-License-Identifier: ISC +/* IEEE 802.15.4 socket example */ /* gcc af_inet6_rx.c -o af_inet6_rx */ #include <sys/types.h> diff --git a/examples/af_inet6_tx.c b/examples/af_inet6_tx.c index a62f730..ece640f 100644 --- a/examples/af_inet6_tx.c +++ b/examples/af_inet6_tx.c @@ -1,23 +1,8 @@ -/* - * AF_INET6 over IEEE 802.15.4 socket example - * - * Copyright (C) 2016 Samsung Electronics Co., Ltd. - * - * Author: Stefan Schmidt <stefan@xxxxxxxxxxxxxxx> - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ +// SPDX-FileCopyrightText: 2016 Samsung Electronics Co., Ltd. +// +// SPDX-License-Identifier: ISC +/* IEEE 802.15.4 socket example */ /* gcc af_inet6_tx.c -o af_inet6_tx */ #include <sys/types.h> diff --git a/examples/af_packet_rx.c b/examples/af_packet_rx.c index 9770965..8757589 100644 --- a/examples/af_packet_rx.c +++ b/examples/af_packet_rx.c @@ -1,23 +1,8 @@ -/* - * IEEE 802.15.4 socket example - * - * Copyright (C) 2016 Samsung Electronics Co., Ltd. - * - * Author: Stefan Schmidt <stefan@xxxxxxxxxxxxxxx> - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ +// SPDX-FileCopyrightText: 2016 Samsung Electronics Co., Ltd. +// +// SPDX-License-Identifier: ISC +/* IEEE 802.15.4 socket example */ /* gcc af_packet_rx.c -o af_packet_rx */ #include <sys/types.h> diff --git a/examples/af_packet_tx.c b/examples/af_packet_tx.c index 82a15f4..e247eaf 100644 --- a/examples/af_packet_tx.c +++ b/examples/af_packet_tx.c @@ -1,23 +1,8 @@ -/* - * IEEE 802.15.4 socket example - * - * Copyright (C) 2016 Samsung Electronics Co., Ltd. - * - * Author: Stefan Schmidt <stefan@xxxxxxxxxxxxxxx> - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ +// SPDX-FileCopyrightText: 2016 Samsung Electronics Co., Ltd. +// +// SPDX-License-Identifier: ISC +/* IEEE 802.15.4 socket example */ /* gcc af_packet_tx.c -o af_packet_tx */ #include <sys/types.h> -- 2.41.0