pike.git / lib / modules / Val.pmod / Inet.pike

version» Context lines:

pike.git/lib/modules/Val.pmod/Inet.pike:18:      array(int) _encode() {    return ({address, masklen});   }      void _decode(array(int) x) {    address = x[0];    masklen = x[1];   }    + protected int __hash() { +  return address; + } +    //! @param ip   //! A string defining an IPv4 or IPv6 address   //! with an optional @expr{masklen@} attached.   //! If the address is in IPv6 notation, the range   //! of the @expr{masklen@} is expected to be   //! between @expr{0@} and @expr{128@}.   //! If the address is in IPv4 notation, the range   //! of the @expr{masklen@} is expected to be   //! between @expr{0@} and @expr{32@}.   variant protected void create(string ip) {