Skip to content
Snippets Groups Projects
Commit dc941c16 authored by Sukru Senli's avatar Sukru Senli
Browse files

add copyright headers

parent 2e8584ae
Branches
No related tags found
No related merge requests found
#Makfile responsible to compile loop-detector sources #Author: Omar Kallel <omar.kallel@pivasoftware.com>
#
#@Company: PivaSoftware, Inteno
#@author: Omar KALLEL
CPPFLAGS=$(CPPOPTIONS) -DPATCH_MD -DPATCH_HOSTAP -D_GNU_SOURCE -D__BUSYBOX__ -D_LIBC CPPFLAGS=$(CPPOPTIONS) -DPATCH_MD -DPATCH_HOSTAP -D_GNU_SOURCE -D__BUSYBOX__ -D_LIBC
......
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
/* /*
* ethernetThreadPool.c source file contains functions that allows to: * 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 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 * - create thread that send periodically loop discovery frame and make decision to up again an ethernet port
* *
* @Company: PivaSoftware, Inteno * Copyright (C) 2017 Inteno Broadband Technology AB. All rights reserved.
* @author: Omar Kallel *
* 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> #include<stdlib.h>
......
/* /*
* This is the main file of loop_detection application. * loop-detector -- the main file of loop_detection application.
* *
* @Company: PivaSoftware, Inteno * Copyright (C) 2017 Inteno Broadband Technology AB. All rights reserved.
* @author: Omar Kallel *
* 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 <stdio.h>
#include <uci.h> #include <uci.h>
#include <stdlib.h> /* for atoi() and exit() */ #include <stdlib.h> /* for atoi() and exit() */
......
/* /*
* mac_ethernet.c source file contains functions that allows to: * mac_ethernet.c -- contains functions that allows to:
* -interact with ehternet ports (up and down) * - interact with ehternet ports (up and down)
* -get the equipment mac address * - get the equipment mac address
* -create loop discovery frame that will be sent periodically * - create loop discovery frame that will be sent periodically
* *
* @Company: PivaSoftware, Inteno * Copyright (C) 2017 Inteno Broadband Technology AB. All rights reserved.
* @author: Omar Kallel *
* 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 <stdio.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment