From 9fd5fdfd5648b727cc7c0005ec56c77adef48099 Mon Sep 17 00:00:00 2001 From: Evan Broder Date: Sun, 5 Jul 2009 20:16:47 -0400 Subject: [PATCH 1/1] In invirt-dhcp: * Include the server identifier field in DHCPOFFERs (LP: #395696). svn path=/trunk/packages/invirt-dhcp/; revision=2361 --- debian/changelog | 6 ++++++ invirt-dhcpserver | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index ea490a8..0ad74a9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-dhcp (0.0.3) unstable; urgency=low + + * Include the server identifier field in DHCPOFFERs (LP: #395696). + + -- Evan Broder Sun, 05 Jul 2009 17:15:09 -0700 + invirt-dhcp (0.0.2) unstable; urgency=low * Don't throw a sqlalchemy.exceptions.InvalidRequestError exception if diff --git a/invirt-dhcpserver b/invirt-dhcpserver index 04376d0..a1966d8 100755 --- a/invirt-dhcpserver +++ b/invirt-dhcpserver @@ -7,6 +7,7 @@ from pydhcplib.type_hw_addr import hwmac from pydhcplib.type_ipv4 import ipv4 from pydhcplib.type_strlist import strlist import socket +import os import IN import syslog as s @@ -18,7 +19,8 @@ from invirt.config import structs as config dhcp_options = {'subnet_mask': config.dhcp.netmask, 'router': config.dhcp.gateway, 'domain_name_server': ','.join(config.dhcp.dns), - 'ip_address_lease_time': 60*60*24} + 'ip_address_lease_time': 60*60*24, + 'server_identifier': socket.gethostbyname(os.uname()[1])} class DhcpBackend: def __init__(self): -- 1.7.9.5