engines/adva_user/vendor/plugins/authentication/lib/radius/packet.rb
def inet_aton(hostname)
      if (hostname =~ /([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/)
	return((($1.to_i & 0xff) << 24) + (($2.to_i & 0xff) << 16) +
	       (($3.to_i & 0xff) << 8) + (($4.to_i & 0xff)))
      end
      return(0)
    end
# I'd like to think that these methods should be built in
# the Socket class
I'd like to think that these methods should be built in
the Socket class
I ' d like to think that these methods should be built in the Socket class
def inet_aton(hostname)
      if (hostname =~ /([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)/)
	return((($1.to_i & 0xff) << 24) + (($2.to_i & 0xff) << 16) +
	       (($3.to_i & 0xff) << 8) + (($4.to_i & 0xff)))
      end
      return(0)
    end
def inet_aton ( hostname ) if ( hostname =~ / ([0-9]+) \. ([0-9]+) \. ([0-9]+) \. ([0-9]+) / ) return ( ( ( $1 . to_i & 0xff ) << 24 ) + ( ( $2 . to_i & 0xff ) << 16 ) + ( ( $3 . to_i & 0xff ) << 8 ) + ( ( $4 . to_i & 0xff ) ) ) end return ( 0 ) end
I'd like to think that these methods should be built in
the Socket class
I ' d like to think that these methods should be built in the Socket class
hostname