[systemd-devel] [networkd] dbus interface?
Lennart Poettering
lennart at poettering.net
Tue May 17 07:59:03 UTC 2016
On Tue, 17.05.16 00:14, Yuri D'Elia (wavexx at thregr.org) wrote:
> On Mon, May 16 2016, Lennart Poettering wrote:
> > That's actually the interface index formatted as integer
> > string. However, since D-Bus does not allow object path components to
> > start with a number it it is escaped with an underscored followed by
> > the ASCII code of the character... Hence "3" becomes "_33", because
> > 0x33 is the ASCII code for the character "3"...
>
> *Cough*
>
> So the 10th interface would be _3130?
No. Only the first character of each component of a dbus object path
gets escaped like that, if it is a number (or actually any character
outside of a-zA-Z). hence:
foo → foo
foo3 → foo3
3foo → _33foo
3foo3 → _33foo3
3 → _33
10 → _310
And so on...
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list