/[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

Log of /lib/PXElator/dhcpd.pm

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 482 - (view) (annotate) - [select for diffs]
Modified Sat Jan 23 18:31:14 2010 UTC (14 years, 2 months ago) by dpavlin
File length: 6274 byte(s)
Diff to previous 464
use store::audit proxy all over the place


Revision 464 - (view) (annotate) - [select for diffs]
Modified Sun Jan 3 18:11:48 2010 UTC (14 years, 2 months ago) by dpavlin
File length: 6280 byte(s)
Diff to previous 457
added optional gw and dns in server.yaml

Revision 457 - (view) (annotate) - [select for diffs]
Modified Sat Jan 2 17:20:40 2010 UTC (14 years, 2 months ago) by dpavlin
File length: 6237 byte(s)
Diff to previous 456
added server::as_hash_for $ip to get server configuration
with local override from conf/ip/$ip/server.yaml


Revision 456 - (view) (annotate) - [select for diffs]
Modified Sat Jan 2 15:49:09 2010 UTC (14 years, 2 months ago) by dpavlin
File length: 6439 byte(s)
Diff to previous 449
force dhcp server configuration with dhcpd.pl


Revision 449 - (view) (annotate) - [select for diffs]
Modified Fri Oct 2 10:23:32 2009 UTC (14 years, 5 months ago) by dpavlin
File length: 6175 byte(s)
Diff to previous 428
fix messages

Revision 428 - (view) (annotate) - [select for diffs]
Modified Sun Sep 13 10:53:41 2009 UTC (14 years, 6 months ago) by dpavlin
File length: 6155 byte(s)
Diff to previous 425
send dhcp response to network broadcast address


Revision 425 - (view) (annotate) - [select for diffs]
Modified Sun Sep 13 09:18:19 2009 UTC (14 years, 6 months ago) by dpavlin
File length: 6123 byte(s)
Diff to previous 424
log every sent packet


Revision 424 - (view) (annotate) - [select for diffs]
Modified Sun Sep 13 09:10:46 2009 UTC (14 years, 6 months ago) by dpavlin
File length: 6132 byte(s)
Diff to previous 423
fix offer typo

Revision 423 - (view) (annotate) - [select for diffs]
Modified Sat Sep 12 22:18:34 2009 UTC (14 years, 6 months ago) by dpavlin
File length: 6133 byte(s)
Diff to previous 413
fix dhcp client address so we don't send nak any more when client allready
knows his ip address

create two element type which include message type from request and response


Revision 413 - (view) (annotate) - [select for diffs]
Modified Wed Sep 9 14:27:02 2009 UTC (14 years, 6 months ago) by dpavlin
File length: 6010 byte(s)
Diff to previous 393
added ip::in_dhcp_range and use it


Revision 393 - (view) (annotate) - [select for diffs]
Modified Tue Sep 8 16:54:35 2009 UTC (14 years, 6 months ago) by dpavlin
File length: 6195 byte(s)
Diff to previous 324
first step towards configurable server (broken in it's current state)

- move configuration into tied variables using server::tie
- rename server::domain_name into server::domain


Revision 324 - (view) (annotate) - [select for diffs]
Modified Fri Aug 28 19:22:24 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 6200 byte(s)
Diff to previous 313
save mac address on renew

Revision 313 - (view) (annotate) - [select for diffs]
Modified Thu Aug 27 18:59:12 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 6164 byte(s)
Diff to previous 267
use upper case mac addresses separated by :

Revision 267 - (view) (annotate) - [select for diffs]
Modified Wed Aug 19 17:01:20 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 6149 byte(s)
Diff to previous 260
don't die without mac address (like flash proxy requests)

Revision 260 - (view) (annotate) - [select for diffs]
Modified Wed Aug 19 10:56:04 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 6084 byte(s)
Diff to previous 244
record all dhcp request options in audit log

Revision 244 - (view) (annotate) - [select for diffs]
Modified Mon Aug 17 13:27:18 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5977 byte(s)
Diff to previous 232
check if client allready have ip address and if it does
don't respond to it unless it's in our ip range, but
record information for later review


Revision 232 - (view) (annotate) - [select for diffs]
Modified Sun Aug 16 22:51:57 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5398 byte(s)
Diff to previous 208
cleanup audit start

Revision 208 - (view) (annotate) - [select for diffs]
Modified Wed Aug 12 23:59:01 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5414 byte(s)
Diff to previous 207
cleanup logging a bit


Revision 207 - (view) (annotate) - [select for diffs]
Modified Wed Aug 12 22:56:45 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5423 byte(s)
Diff to previous 201
first verision which boots virtual machine logging using new CouchDB::audit code

it need some more work to make it less ugly (especially console output) and
less redundant/useful, but it's a start


Revision 201 - (view) (annotate) - [select for diffs]
Modified Tue Aug 11 23:38:53 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5092 byte(s)
Diff to previous 200
take hostname from dhcp request if it exists

Revision 200 - (view) (annotate) - [select for diffs]
Modified Tue Aug 11 15:55:26 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 4945 byte(s)
Diff to previous 194
refactor code to make clinet::change_ip which works

Revision 194 - (view) (annotate) - [select for diffs]
Modified Mon Aug 10 17:30:01 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5266 byte(s)
Diff to previous 177
added client::ip_from_mac with database upgrade so that macs are now symlinks

Revision 177 - (view) (annotate) - [select for diffs]
Modified Fri Aug 7 14:08:21 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5280 byte(s)
Diff to previous 168
fix mac symlink creation

Revision 168 - (view) (annotate) - [select for diffs]
Modified Thu Aug 6 21:31:10 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5265 byte(s)
Diff to previous 167
extracted client::next_ip

Revision 167 - (view) (annotate) - [select for diffs]
Modified Thu Aug 6 20:14:43 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5515 byte(s)
Diff to previous 160
cleaup output without debug

Revision 160 - (view) (annotate) - [select for diffs]
Modified Thu Aug 6 18:09:17 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5404 byte(s)
Diff to previous 156
send just requested dhcp options to clients except for server identifier
which busybox udhcpc implementation requires but don't request


Revision 156 - (view) (annotate) - [select for diffs]
Modified Thu Aug 6 15:15:53 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5021 byte(s)
Diff to previous 153
implement client::conf to fetch/set (with default) client configuration


Revision 153 - (view) (annotate) - [select for diffs]
Modified Wed Aug 5 23:22:17 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 4982 byte(s)
Diff to previous 146
added client hostname and deploy of configuration over web

Revision 146 - (view) (annotate) - [select for diffs]
Modified Wed Aug 5 12:45:29 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5054 byte(s)
Diff to previous 129
fix conf/ip symlink creation, added nameservers and domain_name
to dhcp response


Revision 129 - (view) (annotate) - [select for diffs]
Modified Mon Aug 3 20:53:46 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 5018 byte(s)
Diff to previous 128
split out pxelinux config in own package and implement webconverger


Revision 128 - (view) (annotate) - [select for diffs]
Modified Mon Aug 3 19:59:08 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 4864 byte(s)
Diff to previous 118
added back refresh, this time in as server->refresh


Revision 118 - (view) (annotate) - [select for diffs]
Modified Mon Aug 3 08:52:32 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 4845 byte(s)
Diff to previous 114
added timestamp and moved Module::Refresh->refresh into server


Revision 114 - (view) (annotate) - [select for diffs]
Modified Sun Aug 2 03:31:39 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 4894 byte(s)
Diff to previous 110
added pxelinux dhcp options documented at http://tools.ietf.org/html/draft-ietf-dhc-pxelinux-03

Revision 110 - (view) (annotate) - [select for diffs]
Modified Sun Aug 2 02:04:00 2009 UTC (14 years, 7 months ago) by dpavlin
File length: 4684 byte(s)
Diff to previous 94
cleanup $file and move it to dhcpd, added config::ip_for to refresh it

Revision 94 - (view) (annotate) - [select for diffs]
Modified Fri Jul 31 20:07:53 2009 UTC (14 years, 8 months ago) by dpavlin
File length: 4705 byte(s)
Diff to previous 72
cleanup output


Revision 72 - (view) (annotate) - [select for diffs]
Modified Thu Jul 30 23:57:19 2009 UTC (14 years, 8 months ago) by dpavlin
File length: 4668 byte(s)
Diff to previous 69
record and display log changes by mac addresses


Revision 69 - (view) (annotate) - [select for diffs]
Modified Thu Jul 30 22:44:21 2009 UTC (14 years, 8 months ago) by dpavlin
File length: 4628 byte(s)
Diff to previous 67
use absolute directory


Revision 67 - (view) (annotate) - [select for diffs]
Modified Thu Jul 30 21:31:30 2009 UTC (14 years, 8 months ago) by dpavlin
File length: 4610 byte(s)
Diff to previous 63
implemented correct start/stop logic (which now works!)
and pushed debug state into $server::debug and file 
conf/debug for shared state between servers


Revision 63 - (view) (annotate) - [select for diffs]
Modified Thu Jul 30 16:16:18 2009 UTC (14 years, 8 months ago) by dpavlin
File length: 4592 byte(s)
Diff to previous 48
create pre IP configuration for pxelinux


Revision 48 - (view) (annotate) - [select for diffs]
Modified Thu Jul 30 00:07:57 2009 UTC (14 years, 8 months ago) by dpavlin
File length: 4563 byte(s)
Diff to previous 45
fix package name


Revision 45 - (view) (annotate) - [select for diffs]
Modified Wed Jul 29 22:04:58 2009 UTC (14 years, 8 months ago) by dpavlin
File length: 4564 byte(s)
Diff to previous 44
dump all other peaces in, first configuration which can again boot
(wrong image, that is :-)


Revision 44 - (view) (annotate) - [select for diffs]
Modified Wed Jul 29 20:55:44 2009 UTC (14 years, 8 months ago) by dpavlin
File length: 4514 byte(s)
Copied from: bin/dhcpd.pl revision 40
Diff to previous 40
cleanup dhcpd server


Revision 40 - (view) (annotate) - [select for diffs]
Modified Wed Jul 29 14:29:55 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 4505 byte(s)
Diff to previous 36
added a bunch of dhcp options


Revision 36 - (view) (annotate) - [select for diffs]
Modified Wed Jul 29 13:03:39 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 4191 byte(s)
Diff to previous 33
check if IP is available using Net::Ping


Revision 33 - (view) (annotate) - [select for diffs]
Modified Wed Jul 29 12:23:47 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 4131 byte(s)
Diff to previous 28
correctly handle changing of IP address


Revision 28 - (view) (annotate) - [select for diffs]
Modified Wed Jul 29 00:59:55 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 4040 byte(s)
Diff to previous 27
added dhcp lease time to make ISC's dhclient happy


Revision 27 - (view) (annotate) - [select for diffs]
Modified Wed Jul 29 00:46:29 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 3994 byte(s)
Diff to previous 22
really implement DHCP protocol, so this server now has correct name :-)


Revision 22 - (view) (annotate) - [select for diffs]
Modified Tue Jul 28 16:35:49 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 3186 byte(s)
Diff to previous 17
- correct handling of files and symlinks in conf/
- use autodie for errors
- move detection of server IP into dhcpd
- $gpxe_file defines payload for gPXE


Revision 17 - (view) (annotate) - [select for diffs]
Modified Tue Jul 28 10:29:33 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 2872 byte(s)
Diff to previous 12
read data from filesystem files and symlinks in conf/


Revision 12 - (view) (annotate) - [select for diffs]
Modified Mon Jul 27 22:18:51 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 2449 byte(s)
Diff to previous 8
make first pxe payload configurable
(and use gPXE if there is no setup for $file)
beginning of symlink farm type configuration


Revision 8 - (view) (annotate) - [select for diffs]
Modified Mon Jul 27 11:46:44 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 2385 byte(s)
Diff to previous 6
use $server_ip as base for IP class to hand out


Revision 6 - (view) (annotate) - [select for diffs]
Modified Sun Jul 26 15:16:52 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 2362 byte(s)
Diff to previous 4
don't deliver gPXE to systems which allready have that user class option
in DHCP request (to prevent loops)


Revision 4 - (view) (annotate) - [select for diffs]
Modified Sun Jul 26 14:21:48 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 2322 byte(s)
Diff to previous 3
added next file support so we deliver first gpxe and than config
examples for tftp and http boot of tinycore


Revision 3 - (view) (annotate) - [select for diffs]
Modified Sun Jul 26 13:58:39 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 2252 byte(s)
Diff to previous 1
rename IP address of current server to $server_ip and split it out in file


Revision 1 - (view) (annotate) - [select for diffs]
Added Sun Jul 26 00:38:57 2009 UTC (14 years, 8 months ago) by dpavlin
Original Path: bin/dhcpd.pl
File length: 2231 byte(s)
first cut at dhcp and tftp servers in perl (gPXE boot works)


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC 1.1.26