/[pxelator]/lib/PXElator/ip.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/ip.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 315 by dpavlin, Tue Aug 25 17:09:12 2009 UTC revision 316 by dpavlin, Thu Aug 27 19:58:56 2009 UTC
# Line 111  sub default_route_dev { Line 111  sub default_route_dev {
111  }  }
112    
113  sub to_int {  sub to_int {
114          pack( 'C*', split(/\./, shift) )          unpack( 'N', pack( 'C*', split(/\./, shift) ) )
115  }  }
116    
117  sub from_int {  sub from_int {
118          join( '.', unpack('C4', shift) )          join( '.', unpack('C4', pack('N',shift)) )
119  }  }
120    
121  1;  1;

Legend:
Removed from v.315  
changed lines
  Added in v.316

  ViewVC Help
Powered by ViewVC 1.1.26