From dc941c16a6d5c4d7f94e42abe77577c233297605 Mon Sep 17 00:00:00 2001 From: Sukru Senli <sukru.senli@inteno.se> Date: Thu, 2 Nov 2017 11:03:19 +0100 Subject: [PATCH] add copyright headers --- Makefile | 5 +---- README | 15 +++++++-------- ethernetThreadPool.c | 25 ++++++++++++++++++++----- loop-detector.c | 22 +++++++++++++++++++--- mac_ethernet.c | 27 +++++++++++++++++++++------ 5 files changed, 68 insertions(+), 26 deletions(-) diff --git a/Makefile b/Makefile index b1de8ea..17e0a05 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,4 @@ -#Makfile responsible to compile loop-detector sources -# -#@Company: PivaSoftware, Inteno -#@author: Omar KALLEL +#Author: Omar Kallel <omar.kallel@pivasoftware.com> CPPFLAGS=$(CPPOPTIONS) -DPATCH_MD -DPATCH_HOSTAP -D_GNU_SOURCE -D__BUSYBOX__ -D_LIBC diff --git a/README b/README index 26e7d68..96cffbc 100644 --- a/README +++ b/README @@ -1,10 +1,9 @@ -loop_detection is an openwrt package. -It's responsible to detect layer 2 loops in a network and shutdown the equipment corresponding ehternet port. +------------------- +About loop-detector +------------------- -It's developed by Omar KALLEL from pivasoftware company. +- Developed for OpenWrt systems. +- Responsible to detect layer 2 loops in a switch and shutdown the corresponding ehternet port. +- Developed by Omar KALLEL from Piva Software for Inteno Broadband Technology AB. +- GPLv2 -**** Build **** - -You should select in the menuconfig->Utilities loop_detection. -loop_detection used some libraries like : libpthread, libpcap, libuci. Those libraries should be selected, compiled and then installed in -the router. \ No newline at end of file diff --git a/ethernetThreadPool.c b/ethernetThreadPool.c index ac75aec..3d4d227 100644 --- a/ethernetThreadPool.c +++ b/ethernetThreadPool.c @@ -1,10 +1,25 @@ /* - * ethernetThreadPool.c source file contains functions that allows to: - * -create threads responsible to listen coming frames in each ethernet port and make decision down the port that corresponds to a loop. - * -create thread that send periodically loop discovery frame and make decision to up again an ethernet port + * ethernetThreadPool.c -- contains functions that allows to: + * - create threads responsible to listen coming frames in each ethernet port and make decision down the port that corresponds to a loop. + * - create thread that send periodically loop discovery frame and make decision to up again an ethernet port * - * @Company: PivaSoftware, Inteno - * @author: Omar Kallel + * Copyright (C) 2017 Inteno Broadband Technology AB. All rights reserved. + * + * Author: Omar Kallel <omar.kallel@pivasoftware.com> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA */ #include<stdlib.h> diff --git a/loop-detector.c b/loop-detector.c index 12084f4..d3bb7fc 100644 --- a/loop-detector.c +++ b/loop-detector.c @@ -1,10 +1,26 @@ /* - * This is the main file of loop_detection application. + * loop-detector -- the main file of loop_detection application. * - * @Company: PivaSoftware, Inteno - * @author: Omar Kallel + * Copyright (C) 2017 Inteno Broadband Technology AB. All rights reserved. + * + * Author: Omar Kallel <omar.kallel@pivasoftware.com> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA */ + #include <stdio.h> #include <uci.h> #include <stdlib.h> /* for atoi() and exit() */ diff --git a/mac_ethernet.c b/mac_ethernet.c index f51e7bd..d07b698 100644 --- a/mac_ethernet.c +++ b/mac_ethernet.c @@ -1,11 +1,26 @@ /* - * mac_ethernet.c source file contains functions that allows to: - * -interact with ehternet ports (up and down) - * -get the equipment mac address - * -create loop discovery frame that will be sent periodically + * mac_ethernet.c -- contains functions that allows to: + * - interact with ehternet ports (up and down) + * - get the equipment mac address + * - create loop discovery frame that will be sent periodically * - * @Company: PivaSoftware, Inteno - * @author: Omar Kallel + * Copyright (C) 2017 Inteno Broadband Technology AB. All rights reserved. + * + * Author: Omar Kallel <omar.kallel@pivasoftware.com> + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA */ #include <stdio.h> -- GitLab