Re: dhcpd.leases(5) Verständnisfrage
*Reinhold Plew* wrote:
> Stefan Bauer wrote:
>> [...]
>> uid "\001\000\030Av\020d";
>> [...]
>>
>> The client identifier is recorded as a colon-separated hexadecimal
>> list or as a quoted string. If it is recorded as a quoted
>> string and it contains one or more non-printable characters, those
>> characters are represented as octal escapes - a backslash
>> character followed by three octal digits.
>>
>> An obigem Beispiel also:
>>
>> \001 = 1
>> \000 = 0
>>
>> Aber was fange ich mit \030Av und \020d an? Oder sind das einfach
>> einmalige Strings, die der fremde DHCP-Client an den Server schickt?
Jup, damit sollte sich der Client eindeutig identifizieren.
> Wie es in der Manpage steht;
>
> \030 = 48
> Av = Av
> \020 = 32
> d = d
Naja, wenn schon (die Zahlen sind oktal)
\030 = 24d = \x18
\020 = 16d = \x10
;)
bei der ID oben:
\x00 \x18 \x41 \x76 \x10 \x64
sieht fast wie eine MAC- Adresse aus;)
Gruß, Michel
--
Reply to: