Getting remote_id during DHCPACK in dhcp.c?
Bret Schuhmacher
bret at welcometolazyhill.com
Fri Jun 27 03:17:36 UTC 2008
-----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=
=2Fv3
-----END PGP SIGNATURE-----
More information about the dhcp-hackers
mailing list