aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-10-19 13:26:39 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-10-19 14:08:47 +0200
commitb72c2dc592bdaa2be86ea5b5f00a51599687c32e (patch)
tree960af6a54fcda43b58f79bd061427bccea0d296f
parentb84545e30e327b429b7910dc4675b9e3e80df704 (diff)
sgsnemu: improve an error message
-rw-r--r--sgsnemu/sgsnemu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sgsnemu/sgsnemu.c b/sgsnemu/sgsnemu.c
index 0e109a6..652cc50 100644
--- a/sgsnemu/sgsnemu.c
+++ b/sgsnemu/sgsnemu.c
@@ -1267,7 +1267,8 @@ int cb_tun_ind(struct tun_t *tun, void *pack, unsigned len)
src.s_addr = iph->src;
if (ipget(&ipm, &src)) {
- printf("Received packet without a valid source address!!!\n");
+ printf("Dropping packet from invalid source address: %s\n",
+ inet_ntoa(src));
return 0;
}