]> granicus.if.org Git - pdns/commitdiff
the beginning of powerdhcp? :-)
authorBert Hubert <bert.hubert@netherlabs.nl>
Thu, 24 Sep 2009 20:22:06 +0000 (20:22 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Thu, 24 Sep 2009 20:22:06 +0000 (20:22 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1409 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dhcpclass.cc [new file with mode: 0644]

diff --git a/pdns/dhcpclass.cc b/pdns/dhcpclass.cc
new file mode 100644 (file)
index 0000000..80b50b9
--- /dev/null
@@ -0,0 +1,13 @@
+#include "dhcpmessage.hh"
+#include <stdlib.h>
+#include <string.h>
+#include "statbag.hh"
+#include <iostream>
+
+StatBag S;
+
+int main(int argc, char** argv)
+{
+  DHCPCommunicator dc("10.0.0.11");
+  cerr<<"Mac address of '"<<argv[1]<<"': "<<dc.getMac(argv[1])<<endl;
+}