]> git.ipfire.org Git - thirdparty/util-linux.git/commit
logger: support sub-trees in the ID for RFC5424
authorKarel Zak <kzak@redhat.com>
Sat, 28 Jan 2017 11:39:52 +0000 (12:39 +0100)
committerKarel Zak <kzak@redhat.com>
Sat, 28 Jan 2017 11:39:52 +0000 (12:39 +0100)
commit6d8a31f6db4006c6b9750b6381d0bd74ffc992c6
treed72d4ab849b2fe0d7490bd716b179d22d6558675
parent61cbc8a3f5aa1b4acb4e5a6b7b251b8c5b8f05b5
logger: support sub-trees in the ID for RFC5424

The current code supports <name>@<digit> only, but we also need
<name>@<digit>.<digit>[. ...]

RFC5424: 7.2.2 enterpriseId:

 In general, only the IANA-assigned private enterprise number is
 needed (a single number).  An enterprise might decide to use
 sub-identifiers below its private enterprise number.  If sub-
 identifiers are used, they MUST be separated by periods and be
 represented as decimal numbers.  An example for that would be
 "32473.1.2".

Addresses: https://github.com/karelzak/util-linux/issues/406
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/logger.c