/[pxelator]/lib/PXElator/dhcpd.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/dhcpd.pm

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

revision 464 by dpavlin, Sun Jan 3 18:11:48 2010 UTC revision 482 by dpavlin, Sat Jan 23 18:31:14 2010 UTC
# Line 23  use lib '..'; Line 23  use lib '..';
23  use Net::DHCP::Packet;  use Net::DHCP::Packet;
24  use Net::DHCP::Constants 0.67;  use Net::DHCP::Constants 0.67;
25    
26  use CouchDB;  use store;
27  use format;  use format;
28    
29  use server;  use server;
# Line 230  sub process_packet { Line 230  sub process_packet {
230                  warn $audit->{error};                  warn $audit->{error};
231          }          }
232    
233          CouchDB::audit( @type, $audit );          store::audit( @type, $audit );
234    
235  #       system("arp -s $ip $mac"),  #       system("arp -s $ip $mac"),
236    
# Line 252  sub start { Line 252  sub start {
252    
253          print "DHCP listen on ",$sock->sockhost,":",$sock->sockport,"\n";          print "DHCP listen on ",$sock->sockhost,":",$sock->sockport,"\n";
254    
255          CouchDB::audit( 'start', { addr => $sock->sockhost, port => $sock->sockport } );          store::audit( 'start', { addr => $sock->sockhost, port => $sock->sockport } );
256    
257          while (1) {          while (1) {
258                  server->refresh;                  server->refresh;

Legend:
Removed from v.464  
changed lines
  Added in v.482

  ViewVC Help
Powered by ViewVC 1.1.26