sgsnemu: improve an error message
This commit is contained in:
parent
065476d192
commit
9036950dea
|
@ -1267,7 +1267,8 @@ int cb_tun_ind(struct tun_t *tun, void *pack, unsigned len)
|
||||||
src.s_addr = iph->src;
|
src.s_addr = iph->src;
|
||||||
|
|
||||||
if (ipget(&ipm, &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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in New Issue