Branch: Tag:

2003-04-23

2003-04-23 14:01:57 by Martin Nilsson <mani@lysator.liu.se>

IPv6 non-fix.

Rev: lib/modules/Protocols.pmod/SNMP.pmod/protocol.pike:1.11

17:   //! 2570 : v3 description   //!    - // $Id: protocol.pike,v 1.10 2002/12/04 19:14:00 bill Exp $ + // $Id: protocol.pike,v 1.11 2003/04/23 14:01:57 nilsson Exp $         #include "snmp_globals.h"
660:   // " ticks: %O, locip: %O, remaddr: %O, remport: %O\n",   // varlist, oid, type, spectype, ticks, locip, remaddr, remport));    locip = locip || "0.0.0.0"; +  if (has_value(locip,":")) // FIXME: Can't handle IPv6 +  locip = "0.0.0.0";    if (sizeof(locip/".") != 4)    locip = "0.0.0.0"; //FIXME: what for hell I want to do with such ugly value?    //sscanf(locip, "%d.%d.%d.%d", @lip);