minor, upon ud_dscrd() (recv branch) check the magic number and make sure the packet is at least sizeof(ud_hdr_s) bytes long

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, hygiene, don't declare ud_sock_t restrict via typedef

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, hygiene, rephrase sockaddr_in6 initialiser as hierarchical union->struct initialiser

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
fix, PEBKAC, de-big-endian-ify the command upon ud_chck_msg()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'core/api' into next

* core/api:
  fix, PEBKAC, de-big-endian-ify the command upon ud_chck_msg()
  chore, hygiene, rephrase sockaddr_in6 initialiser as hierarchical union->struct initialiser
  fix, hygiene, don't declare ud_sock_t restrict via typedef
  minor, upon ud_dscrd() (recv branch) check the magic number and make sure the packet is at least sizeof(ud_hdr_s) bytes long
fix, PEBKAC, actually start recv()ing new packets when check counter is beyond read counter

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, provide UDEBUG() macro in unserding.c

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, after ud_dscrd() call in ud_chck_msg() check if new data is there

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, provide ud_chck_cmsg() and connect UD_SVC_PINGs to ud_pack_pong()s

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, deflect control messages in ud_chck_msg() to ud_chck_cmsg()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, track PING or PONG in ud_chck_ping()

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, in ud-ping check if response packet is actually a PONG

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'core/api-ctrl' into next

* core/api-ctrl:
  minor, in ud-ping check if response packet is actually a PONG
  minor, track PING or PONG in ud_chck_ping()
  minor, deflect control messages in ud_chck_msg() to ud_chck_cmsg()
  minor, provide ud_chck_cmsg() and connect UD_SVC_PINGs to ud_pack_pong()s
  minor, after ud_dscrd() call in ud_chck_msg() check if new data is there
  chore, provide UDEBUG() macro in unserding.c
  fix, PEBKAC, actually start recv()ing new packets when check counter is beyond read counter
minor, rename logger.h to ud-logger.h

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
chore, adapt unserding-dbg.h to new logger system

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, make ud_logout() the most generic function and plaster error() and logger() on top

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, migrate mcast.c to ud-logger system and define UD_SYSLOG convenience macro

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
hygiene, include syslog.h again in ud-logger.h so facilities are defined

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
minor, migrate unsermon to ud-logger facility

Signed-off-by: Sebastian Freundt <freundt@ga-group.nl>
Merge branch 'core/logger' into next

* core/logger:
  minor, migrate unsermon to ud-logger facility
  hygiene, include syslog.h again in ud-logger.h so facilities are defined
  minor, migrate mcast.c to ud-logger system and define UD_SYSLOG convenience macro
  minor, make ud_logout() the most generic function and plaster error() and logger() on top
  chore, adapt unserding-dbg.h to new logger system
  minor, rename logger.h to ud-logger.h