Commit 8df2f3cd authored by Damien Lucas's avatar Damien Lucas

. Added COPYING file (GPL license)

. Added AUTHORS file
. Added ChangeLog file (currently empty)

. Use of VS_sleep is now just in case of debugging
. Compilation of VS_sleep just in case of debugging
. Moved mem.c/mem.h/sleep.c/sleep.h in a debug directory

. Added header in each file with
   -a CVS tag $Id$
   -the name of the file and a summary of it does
   -a copyrigth information
   -a word to say this file is GPL
   -the name of the author



PLEASE, check AUTHORS and your files (I wasn't sure of the author of each)
parent 204e15ea
# The format of this file was inspired by the Linux kernel CREDITS file.
#
# Authors and contributors are listed alphabetically.
#
# The fields are: name (N), email (E), web-address (W), CVS account login (C),
# PGP key ID and fingerprint (P), description (D), and snail-mail address (S).
N: Marc Ariberti
E: marcari@via.ecp.fr
C: marcari
D: communication with vlc
N: Brieuc Jeunhomme
E: bbp@via.ecp.fr
C: bbp
D: database
D: config
N: Michel Kaempf
E: maxx@via.ecp.fr
C: maxx
D: scripts for mini-server
N: Tristan Leteurtre
E: tooney@via.ecp.fr
C: tooney
D: functions in snmp
N: Damien Lucas
E: nitrox@via.ecp.fr
C: nitrox
D: snmp
D: interface
D: logger, Makefile
N: Loc Minier
E: lool@via.ecp.Fr
C: lool
D: functions in telnetd
N: Laurent Rossier
E: gunther@via.ecp.fr
C: gunther
D: server part
D: communication with vlb
D: config part
This diff is collapsed.
#==========================#
# ChangeLog for VLANserver #
#==========================#
0.0.1
* first public release
# Makefile for the VLANserver program (part of VideoLAN project)
###############################################################################
# VLANserver main Makefile - (c)2001 VideoLAN
###############################################################################
# DO NOT CHANE ANYTHING IN THAT FILE
# Options are in Makefile.options
......@@ -82,13 +86,16 @@ SOURCES = \
main.c \
types.c \
logger.c \
sleep.c \
interface/interface.c\
interface/telnet.c
ifeq ($(MEM_DBG),1)
SOURCES += mem.c
SOURCES += debug/mem.c
endif
ifeq ($(DBG),1)
SOURCES += debug/sleep.c
endif
OBJECTS = $(SOURCES:%.c=%.o)
DEPS = $(SOURCES:%.c=deps/%.d)
......@@ -144,6 +151,7 @@ dir:
@mkdir -p deps/db
@mkdir -p deps/interface
@mkdir -p deps/server
@mkdir -p deps/debug
clean:
@echo "Removing deps directory, objects files, and VLANserver"
......
#
# VLANserver tasks
# ----------------
#
#
(snmp 7):
Prévenir le serveur d'un linkup/linkdown lors d'un catch snmp-trap
......
#ifndef __COMMON_H__
#define __COMMON_H__
/* VideoLAN VLAN operations: definitions of all codes for messages exchange between
* VLANserver, VLANclient and VLANbridge
/*****************************************************************************
* common.h
* VideoLAN VLAN operations: definitions of all codes for messages exchange
* between VLANserver, VLANclient and VLANbridge
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: common.h,v 1.3 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Regis Duchesne <regis@via.ecp.fr>
* Arnaud Bienvenu <fred@@via.ecp.fr>
* Benoit Steiner <benny@via.ecp.fr>
*
* Regis Duchesne, VIA, ECP, France <regis@via.ecp.fr>, 23/09/97
* Arnaud Bienvenu, VIA, ACP, France <fred@@via.ecp.fr>, 23/09/97
* Benoit Steiner, VIA, ECP, France <benny@via.ecp.fr>, 13/10/98
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#ifndef __COMMON_H__
#define __COMMON_H__
/***************************************************************************/
/* Format of a message: ASCII control code and then arguments written next */
/* to the message code below (<XXX> <YYY>) if needed */
/***************************************************************************/
/*****************************************************************************
* Format of a message: ASCII control code and then arguments written next
* to the message code below (<XXX> <YYY>) if needed
*****************************************************************************/
/* Message format definition */
#define VLAN_MSG_LEN 256 /* Maximum length of a message */
#define VLAN_CODE_LEN 2 /* Control code values range from 0 to 99 */
#define VLAN_MAC_SIZE 18 /* Length of a MAC field (including final NULL char) */
#define VLAN_IP_SIZE 16 /* Lentgh of an IP field (including final NULL char) */
#define VLAN_MSG_LEN 256 /* Maximum length of a message */
#define VLAN_CODE_LEN 2 /* Control code values range from 0 to 99 */
#define VLAN_MAC_SIZE 18 /* Length of a MAC field (with \0) */
#define VLAN_IP_SIZE 16 /* Lentgh of an IP field (with \0) */
/* Error msg (common for VLANserver, client and bridge) */
#define VLAN_BAD_COMMAND 4 /* Invalid request: bad command */
#define VLAN_BAD_FORMAT 5 /* Invalid request: bad format */
#define VLAN_BUSY 6 /* Server is busy, request ignored */
#define VLAN_ERROR 7 /* A global unrecoverable error occured */
#define VLAN_BAD_COMMAND 4 /* Invalid request: bad command */
#define VLAN_BAD_FORMAT 5 /* Invalid request: bad format */
#define VLAN_BUSY 6 /* Server is busy, request ignored */
#define VLAN_ERROR 7 /* A global unrecoverable error occured */
/* login msg (common for all) */
#define VLAN_LOGIN_REQUEST 98 /* <soft version> <login> <passwd> */
#define VLAN_LOGIN_OK 97 /* Login accepted */
#define VLAN_LOGIN_KO 96 /* Login rejected */
#define VLAN_LOGIN_REQUEST 98 /* <soft version> <login> <passwd> */
#define VLAN_LOGIN_OK 97 /* Login accepted */
#define VLAN_LOGIN_KO 96 /* Login rejected */
/* logout (common for all too) */
#define VLAN_BYE 99 /* Logout msg */
#define VLAN_BYE 99 /* Logout msg */
/* VLANbridge <> VLANserver msg */
#define VLAN_ROUTE_REQUEST 11 /* <MAC> [IP] <VLAN Dest> [VLAN Src */
#define VLAN_ROUTE_OK 13 /* Route request succesfully completed */
#define VLAN_ROUTE_KO 14 /* Request failed to be processed */
#define VLAN_ROUTE_NOMOVE 18 /* Request not processed: client didn't move */
#define VLAN_ROUTE_REQUEST 11 /* <MAC> [IP] <VLAN Dest> [VLAN Src */
#define VLAN_ROUTE_OK 13 /* Route request succesfully completed */
#define VLAN_ROUTE_KO 14 /* Request failed to be processed */
#define VLAN_ROUTE_NOMOVE 18 /* Request not processed:\
client didn't move */
/* VLANserver <> client msg */
#define VLAN_MOVE_REQUEST 21 /* <MAC> [IP] <VLAN Dest> [VLAN Src] */
#define VLAN_MOVE_OK 22 /* Move request succesfully completed */
#define VLAN_MOVE_KO 23 /* Request failed to be processed */
#define VLAN_MOVE_REQUEST 21 /* <MAC> [IP] <VLAN Dest> [VLAN Src] */
#define VLAN_MOVE_OK 22 /* Move request succesfully completed */
#define VLAN_MOVE_KO 23 /* Request failed to be processed */
/* VLANserver <> VLANclient */
#define VLAN_LOCATION_REQUEST 31 /* No argument */
#define VLAN_LOCATION_ANSWER 32 /* <switch> <port> <vlan> <sharers> */
#define VLAN_LOCATION_UNKNOW 33 /* VLANserver don't know */
#define VLAN_LOCATION_REQUEST 31 /* No argument */
#define VLAN_LOCATION_ANSWER 32 /* <switch> <port> <vlan> <sharers> */
#define VLAN_LOCATION_UNKNOW 33 /* VLANserver don't know */
#endif
/*****************************************************************************
* config.h
* Some configurations defines
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: config.h,v 1.3 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Laurent Rossier <gunther@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#ifndef __CONFIG_H__
#define __CONFIG_H__
......
/*****************************************************************************
* config.fl
* Generate a parser for the config file
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: config.fl,v 1.18 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Brieuc Jeunhomme <bbp@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
%pointer
%option nounput
......
/*****************************************************************************
* config.h
* Header file for config.c (once generated)
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: config.h,v 1.6 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Brieuc Jeunhomme <bbp@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#ifndef __CFG_CONFIG_H__
#define __CFG_CONFIG_H__
......
/*****************************************************************************
* db.c
* database file
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: db.c,v 1.20 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Brieuc Jeunhomme <bbp@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <stdlib.h> /* free, malloc */
#include <pthread.h> /* pthread_mutex_lock */
#include <semaphore.h> /* sem_wait */
......
/*****************************************************************************
* mem.c
* Add a memory limitation
* Log every malloc and free in a file
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: mem.c,v 1.1 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Damien Lucas <nitrox@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
......@@ -8,6 +33,7 @@
void *(*old_malloc_hook) (size_t);
void (*old_free_hook) (void*);
/* Global variables to define log file */
static FILE * fd;
/* Prototypes for our hooks. */
......@@ -26,7 +52,7 @@ void * my_malloc_hook (size_t size)
old_malloc_hook = __malloc_hook;
old_free_hook = __free_hook;
/* printf might call malloc, so protect it too. */
fprintf (fd,"malloc (%u) returns %p\n", (unsigned int) size, result);
fprintf (fd,"malloc for (%u) returns %p\n", (unsigned int) size, result);
fflush(fd);
/* Restore our own hooks */
__malloc_hook = my_malloc_hook;
......
/*****************************************************************************
* mem.h
* Header file for mem.c
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: mem.h,v 1.1 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Damien Lucas <nitrox@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#ifndef __MEM_H__
#define __MEM_H__
void mem_init (void);
#endif
/*****************************************************************************
* sleep.c
* Provide a sleep function that works with bugged version of gdb
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: sleep.c,v 1.1 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Laurent Rossier <gunther@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <sys/time.h> /* struct timeval */
#include <unistd.h> /* NULL */
void VS_sleep(int sec)
{
struct timeval timeout;
timeout.tv_sec = sec;
timeout.tv_usec = 0;
select(0, NULL, NULL, NULL, &timeout);
}
/*****************************************************************************
* sleep.h
* Header file for sleep.c
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: sleep.h,v 1.1 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Laurent Rossier <gunther@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#ifndef __SLEEP_H__
#define __SLEEP_H__
void VS_sleep(int sec);
#endif
/*****************************************************************************
* interface.c
* Main functions that are use by interfaces
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: interface.c,v 1.8 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Damien Lucas <nitrox@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <arpa/inet.h> /* types.h */
#include <stdlib.h> /* malloc, free */
#include <pthread.h> /* pthread_create */
......
/*****************************************************************************
* interface.h
* Header file for interface.c
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: interface.h,v 1.6 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Damien Lucas <nitrox@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#ifndef __INTERFACE_H__
#define __INTERFACE_H__
......
/*****************************************************************************
* telnet.c
* Provide a telnet interface
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: telnet.c,v 1.14 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Damien Lucas <nitrox@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <stdio.h> /* sprintf */
#include <stdlib.h> /* free, malloc */
#include <string.h> /* bzero */
......
/*****************************************************************************
* telnet.h
* Header file for telnet.c
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: telnet.h,v 1.5 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Damien Lucas <nitrox@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#ifndef __TELNET_H__
#define __TELNET_H__
......
/*****************************************************************************
* logger.c
* Print a log to a file or to screen
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: logger.c,v 1.17 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Damien Lucas <nitrox@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <pthread.h> /* pthread_mutex_lock */
#include <stdarg.h> /* va_arg */
#include <time.h> /* time */
......
/*****************************************************************************
* logger.h
* Header file for logger.c
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: logger.h,v 1.10 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Damien Lucas <nitrox@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#ifndef __LOGGER_H__
#define __LOGGER_H__
/* Methods for logger
* TODO should be in a enum */
/* Methods for logger */
#define LOG_NONE 0
#define LOG_FILE_ONLY 1
#define LOG_SCREEN_ONLY 2
......
/*****************************************************************************
* main.c
* Main function
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: main.c,v 1.11 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Brieuc Jeuhomme <bbp@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <arpa/inet.h> /* types.h */
#include <stdlib.h> /* malloc */
#include <netdb.h> /* if_snmp.h */
......@@ -21,7 +45,7 @@
#include "server/server.h" /* VS_init */
#include "vlanserver.h" /* struct VLANserver */
#ifdef MEM_DBG
# include "mem.h" /* mem_init */
# include "debug/mem.h" /* mem_init */
#endif
/* Global Variable */
......
#ifndef __MEM_H__
#define __MEM_H__
void mem_init (void);
#endif
/*****************************************************************************
* sh_vlan.c
* Provide an interface to use client.c
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: sh_vlan.c,v 1.3 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Laurent Rossier <gunther@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <stdio.h>
#include "../../types.h"
......
/*****************************************************************************
* vlanc.c
* mini client to change vlan
*****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
* $Id: vlanc.c,v 1.2 2001/04/29 03:41:49 nitrox Exp $
*
* Authors: Brieuc Jeunhomme <bbp@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,