Getting remote_id during DHCPACK in dhcp.c?
Randall C Grimshaw
rgrimsha at syr.edu
Fri Jun 27 12:17:47 UTC 2008
you may be able to collect the data you need from the logging of commits. please check the archives.
________________________________
From: dhcp-hackers-bounce at isc.org on behalf of Bret Schuhmacher
Sent: Thu 6/26/2008 11:17 PM
To: dhcp-hackers at isc.org
Subject: Getting remote_id during DHCPACK in dhcp.c?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi All, new here...
I'm trying to get my hands on the remote_id at the time the DHCP lease
is acknowledged. Are either of these two routes feasible?
1) lease->state->interface_info->remote_id
2) use lease->state->packet and dig through the packet options?
I'm trying to record a Cable Modem's MAC when a CPE requests an IP. For
instance, in the following scenario, I want to get the CPE's MAC and the
CM's MAC.
ISP........Cable Modem (CM).........CPE (i.e. laptop)
When the laptop requests an IP, I need to record the CPE MAC and the
CM's MAC for legal purposes.
Doing this when the code in dhcp.c acknowledges the DHCPACK seems most
appropriate as it's logging everything but the CM's MAC.
Thanks for pointers!! Oh, fwiw, I'm using v3.0.7 which seemed most
current. Should I be using 4.xx?
Thanks,
Bret
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
iD8DBQFIZFvP/PgQIGRJuUcRAtEEAJ9salJrQVQ7L5etRderv5PkTxnOHACfc4kP
9/m1UqCFUorwjO3yE9/vykg/v3
-----END PGP SIGNATURE-----
More information about the dhcp-hackers
mailing list