1. 29 Apr, 2001 1 commit
    • Damien Lucas's avatar
      . Added COPYING file (GPL license) · 8df2f3cd
      Damien Lucas authored
      . 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)
  2. 28 Apr, 2001 6 commits
  3. 25 Apr, 2001 1 commit
  4. 24 Apr, 2001 1 commit
  5. 23 Apr, 2001 2 commits
  6. 22 Apr, 2001 5 commits
  7. 21 Apr, 2001 2 commits
    • Damien Lucas's avatar
      . Segfault is dead. · 50227d60
      Damien Lucas authored
        One word about what it was:
          A switch has zwitch->nbports ports (defined in the config)
          If you put 24 for a 26 ports switch, you won't take care of the 2 lasts
          anywhere but when walking on the macs, you'll got macs on 25 and 26
          and we did fill zwitch->machine[25] which was not allocated.
          Doing that we were corrupting the memory in the snmplib code
      . Add tools for debugging in prevision of next segfault ;-)
        set MEM_DBG=1 in Makefile to compile with.
        It activated the Memory limitation
        And it logs all calls of malloc and free even inside dynamic libs
      Ready to test !
    • Tristan Leteurtre's avatar
      . added a portid[port,unit] table definition · a2d3eb60
      Tristan Leteurtre authored
      . added functions to init this table
      Snmp_PORT & PORT_Snmp are not fully removed
      because of conceptual problems of initialisation...
  8. 20 Apr, 2001 2 commits
    • Damien Lucas's avatar
      . Few changes inside snmp · 445782f2
      Damien Lucas authored
      . Biggest one is that snmp_send is no more called inside the callback
      It's much better like that,
      But it doesn't seems to be the reason of the segfault.
    • Damien Lucas's avatar
      . Added an option in .fl in order to avoid the gcc warning · 523c4511
      Damien Lucas authored
      . Changed DEBUG option in DEBUG for logs and MEM_DEBUG for memory purpose
      . Removed *vs argument (vs is now a global variable) in each function
      . Updated vlanserver.conf.sample
      . snmp time out is yet implemented
      . so switches are not polled the same way:
         no second init, just reasking 5 times aborting after
      . Added the good #includes in order not to have to put the snmp prototypes
        in our code
      . Removed a segfault in snmp when using traps
      All this seems to work well.
      BUT there is always the current segfault.
       I think now that it relies on double use of libsnmp
         I mean call to snmp_create_pdu inside one of our function which is itself
         called by snmp_read. Seems not to be allowed.
         I'm gonna try not to resend anything in callback.c but pushing requests
         to main loop in order to execute snmp functions outside snmp_read.
  9. 16 Apr, 2001 1 commit
    • Damien Lucas's avatar
      1. Added return values of sscanf in order to prevent from bad messages · 6399328b
      Damien Lucas authored
         and added few comments (request_handler.c)
      2. In section doc, wrote about the way of using
            . unit (cf support of matrixed switches)
            . logfile, logmethod (see below)
      3. Changed the LogMethod:
            . logmethod can be NONE, FILE_ONLY, SCREEN_ONLY, BOTH
            . we are now able to change the logmethod in runtime
            . At the beginning we use SCREEN_ONLY
            . After parsing the config file, we take cfg->logmethod into account
            . Todo: do the same thing with loglevels
  10. 13 Apr, 2001 1 commit
    • Damien Lucas's avatar
      . added lool's code (function to info about a mac by the interface) · f63df20e
      Damien Lucas authored
        lool: please have a look, I changed few things.
      . added a test to knnow if mac is alone on the port or not
        This test is actually only in interface part
        I will soon include it inside server's part to bridge ALL macs
      . changed a type definition in server/request_handler
        long long int instead of VS_MachineId
        (but this should not be reason of the segfault)
  11. 05 Apr, 2001 1 commit
  12. 04 Apr, 2001 2 commits
  13. 03 Apr, 2001 1 commit
  14. 02 Apr, 2001 1 commit
  15. 01 Apr, 2001 3 commits
    • Damien Lucas's avatar
    • Damien Lucas's avatar
      . Few changes in telnet · 31dd202d
      Damien Lucas authored
      . Now we are able to log inside a log file
    • Damien Lucas's avatar
      · 49e25f05
      Damien Lucas authored
      . Don't print logs with LOGDEBUG level when compiling without the -DDEBUG
      . Wait the end of the snmp init before starting sending requests to it
      . New function inside telnetd: reload forces to flush the database
      . Support for matrixed switched
         config (need to enter the unit) default is 1
         snmp changed in port-vlan and port-mac
         added a 3COM specific kludge
  16. 29 Mar, 2001 2 commits
  17. 21 Mar, 2001 3 commits
  18. 08 Feb, 2001 1 commit
  19. 21 Jan, 2001 2 commits
    • Damien Lucas's avatar
      . Added comments. · 274aae90
      Damien Lucas authored
      . Added errors checking.
      . Added free.
      . Changed protos of functions.
    • Damien Lucas's avatar
      . Added first part of the interface · b44429ae
      Damien Lucas authored
        ie beginning of a telnetd interface (working but no login check ...
        no buffer overflow known in the telnet
      . Changed few things in snmp (but did not correct the desktop bug)
      . Splited functions the snmp.c file, creating callback.c.
  20. 19 Jan, 2001 2 commits