[PATCH 1/1] log: syslog driver

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Feb 11 08:11:00 CET 2020



On 2/11/20 12:13 AM, Simon Glass wrote:
> Hi Heinrich,
>
> On Sat, 8 Feb 2020 at 18:35, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>>
>> Provide a log driver that broadcasts RFC 3164 messages to syslog servers.
>> rsyslog is one implementation of such a server.
>>
>> The messages are sent to the local broadcast address 255.255.255.255 on
>> port 514.
>>
>> The environment variable log_hostname can be used to provide the HOSTNAME
>> field for the messages. The optional TIMESTAMP field of RFC 3164 is not
>> provided.
>>
>> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
>> ---
>>   MAINTAINERS         |   2 +-
>>   common/Kconfig      |   7 +++
>>   common/Makefile     |   1 +
>>   common/log_syslog.c | 117 ++++++++++++++++++++++++++++++++++++++++++++
>>   doc/README.log      |   3 ++
>>   5 files changed, 129 insertions(+), 1 deletion(-)
>>   create mode 100644 common/log_syslog.c
>
> Is it possible to add a test for this using sandbox networking?

test/dm/eth.c seems to contain templates.

I guess sandbox_eth_set_tx_handler() could be used for checking the
syslog message.

Best regards

Heinrich


More information about the U-Boot mailing list