9
0
Fork 0

sgsnemu: improve an error message

This commit is contained in:
Neels Hofmeyr 2015-10-19 13:26:39 +02:00 committed by Holger Hans Peter Freyther
parent cd14094bb6
commit 041824dfc8
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}