]> 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>
Tue, 21 Feb 2017 12:12:43 +0000 (13:12 +0100)
commit4e6fa51616863d5675ff3bcae995ce61cc18e11c
treeec3391c11ffb983e6bdfd0492cf75ff0e4c4a455
parentc3754dc2ae64c9dbc91aad796ed6d4e183f779a7
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