Hi
Trying to use the dhcp API
https://github.com/inverse-inc/packetfence/tree/devel/go/dhcp and add dhcp
option 160 (https://tools.ietf.org/html/rfc7710) with a line like this:
curl -H "Content-Type: application/json" -d
'[{"option":160,"value":"https://captiveportaluri","type":"string"}]'
http://127.0.0.1:22222/api/v1/dhcp/options/network/10.10.0.0
returns:
{"status":"ACK","network":"10.10.0.0"}
But I do not see that option when capturing the dhcp offer packets or when
using the stats api command:
curl http://127.0.0.1:22222/api/v1/dhcp/stats/ens34 | python -m json.tool
[
{
"category": "none",
"free": 65267,
"interface": "ens34",
"members": [ {removed members} ],
"network": "10.10.0.0/16",
"options": {
"optionDomainName": "dns-enforcement.whatever",
"optionDomainNameServer": "192.168.50.1",
"optionIPAddressLeaseTime": "24h0m0s",
"optionRouter": "10.10.255.254",
"optionSubnetMask": "255.255.0.0"
},
"status": "Normal"
},
{
"category": "none",
"free": 237,
"interface": "ens34",
"members": null,
"network": "192.168.50.0/24",
"options": {
"optionDomainName": "dns-enforcement.whatever",
"optionDomainNameServer": "192.168.50.1",
"optionIPAddressLeaseTime": "30s",
"optionRouter": "192.168.50.1",
"optionSubnetMask": "255.255.255.0"
},
"status": "Normal"
}
]
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users