<div dir="ltr">I have not used Kea yet, but can you just concat twice:<div>concat(concat(a, b), c)<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br>-- <br>Bob Harold</div><div><br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 26, 2019 at 8:45 AM TroYy <<a href="mailto:modo555@gmail.com">modo555@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Looking for proper way of identifying hosts that showing up with option82<br>
<br>
As for now some limitations with library not allowing me to do what I've<br>
planned<br>
<br>
Assuming that client's discover contains option 82, suboption 1 contains<br>
vlan, unit and port of the switch. Suboption 2 holds mac of the switch.<br>
<br>
As a working test example of my expression<br>
<br>
"identifier-expression": "concat(substring(relay4[1].hex,2,2), pkt4.mac)",<br>
identyfies host as vlan+client_mac<br>
<br>
My desireable client's identificator should be ideally<br>
(client's_hwaddr)*+*(switch_port)*+*(switch_mac)<br>
<br>
Is my understanding correct, that library`s identifier-expression can't<br>
contain three different strings from packet, because only affordable way to<br>
add strings is by using "concat" expression which allows concatenation only<br>
for *two* arguments?<br>
<br>
If its true, then only variants, considering that client's mac is a must,<br>
are:<br>
client_mac + switch_mac<br>
client_mac + vlan<br>
client_mac + switch_port<br>
client_mac + vlan,unit,port(bc arguments go in a row)<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://kea-users.7364.n8.nabble.com/" rel="noreferrer" target="_blank">http://kea-users.7364.n8.nabble.com/</a><br>
_______________________________________________<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
</blockquote></div>