atom feed4 messages in org.isc.lists.dhcp-hackersRe: Match if substring ...
FromSent OnAttachments
MatejJan 14, 2009 10:04 am 
Eduardo FleuryJan 14, 2009 10:12 am 
Alexander ClouterJan 14, 2009 10:17 am 
MatejJan 14, 2009 10:24 am 
Subject:Re: Match if substring ...
From:Matej (mat@matnet.net)
Date:Jan 14, 2009 10:24:58 am
List:org.isc.lists.dhcp-hackers

Hi,

thank you both. Of course that was it :-)

----- Original Message ----- From: "Alexander Clouter" <ac@soas.ac.uk> To: "Matej" <mat@matnet.net> Cc: <dhcp@lists.isc.org>; <dhcp@lists.isc.org> Sent: Wednesday, January 14, 2009 7:18 PM Subject: Re: Match if substring ...

Hi,

* Matej <mat@matnet.net> [2009-01-14 19:05:20+0100]:

we have a problem where we must differentiate between different values of vendor-class-identifiers and firmware versions for them. The problem is that for every v-c-i there is only one right firmware. The vendor-class-identifiers are for example "Firmware_1" and "Firmware_1b"

The following class "happens" with both firmware versions

class "something" { match if ( substring (option vendor_class_identifier, 0, 10) = "Firmware_1"); filename = "blahblah"; }

which isn't what we want. Is there an option of some sort of exclusive or / matching the entire vendor_class_identifier or something like that?

You should make this (from dhcpd.conf):

---- class "wibble" { match if option vendor_class_identifier = "Firmware_1"; filename = "wobble"; }

Cheers