This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Osmocom network interface library".
The branch, master has been updated
via 1bfbf98f066dc1fa34bffb5377220323ea7aa802 (commit)
via a2b50809c766bfb1f94ac0fc7c76517e3e3a66ab (commit)
via 8440357d4cc88479921350344e435ee9c5e4e0f1 (commit)
from fae8559ff5ce825a874eeb33b2f1053430c07dc3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cgit.osmocom.org/libosmo-netif/commit/?id=1bfbf98f066dc1fa34bffb5377…
commit 1bfbf98f066dc1fa34bffb5377220323ea7aa802
Author: Max <msuraev(a)sysmocom.de>
Date: Fri Oct 13 18:24:37 2017 +0200
cosmetic: print textual error from recv()
Change-Id: Ic9557c6519b44b5985daf7d2d14ec063790441fb
http://cgit.osmocom.org/libosmo-netif/commit/?id=a2b50809c766bfb1f94ac0fc7c…
commit a2b50809c766bfb1f94ac0fc7c76517e3e3a66ab
Author: Max <msuraev(a)sysmocom.de>
Date: Fri Oct 13 18:16:03 2017 +0200
cosmetic: relax UDP length check
Previously recv() returning 0 for UDP socket was considered as error
although it's legitimate return value for empty UDP packets. Relax the
error check to avoid confusing error messages.
The function behavior is the same:
* msg is not altered while receiving 0-length UDP packet
* return value is 0
The only result of the relaxed error check is the absense of error log
message for 0-length UDP packet.
Change-Id: I32e5fcbf5ed92cc923660ac59e6a37fd3f0703a7
Fixes: OS#2219
http://cgit.osmocom.org/libosmo-netif/commit/?id=8440357d4cc88479921350344e…
commit 8440357d4cc88479921350344e435ee9c5e4e0f1
Author: Max <msuraev(a)sysmocom.de>
Date: Fri Oct 13 15:30:54 2017 +0200
examples: add simple UDP client/server
In addition to showing basic UDP send/receive example, it helps to test
corner-case when dealing with 0-length UDP packets.
Change-Id: I08c0adf1cf9b6a6f1f7090b237d0497c2ec13cdf
Related: OS#2219
-----------------------------------------------------------------------
Summary of changes:
.gitignore | 2 +
examples/Makefile.am | 10 ++++
examples/udp-test-client.c | 43 ++++++++++++++
examples/udp-test-server.c | 35 ++++++++++++
examples/udp-test.h | 137 +++++++++++++++++++++++++++++++++++++++++++++
src/datagram.c | 6 +-
6 files changed, 230 insertions(+), 3 deletions(-)
create mode 100644 examples/udp-test-client.c
create mode 100644 examples/udp-test-server.c
create mode 100644 examples/udp-test.h
hooks/post-receive
--
Osmocom network interface library