[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #47952] ping_recv() does not work with IPv4
From: |
Andrey Butok |
Subject: |
[lwip-devel] [bug #47952] ping_recv() does not work with IPv4 |
Date: |
Wed, 18 May 2016 07:20:33 +0000 (UTC) |
User-agent: |
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; InfoPath.2; MS-RTC LM 8; .NET4.0E; Tablet PC 2.0; InfoPath.3; yie) |
URL:
<http://savannah.nongnu.org/bugs/?47952>
Summary: ping_recv() does not work with IPv4
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: butok
Submitted on: Wed 18 May 2016 07:20:29 AM GMT
Category: Contrib
Severity: 3 - Normal
Item Group: Faulty Behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release:
lwIP version: git head
_______________________________________________________
Details:
Hello,
contrib\apps\ping\ping.c
line 168:
if (from.sin_family == AF_INET) {
LWIP_DEBUGF( PING_DEBUG, ("ping: invalid sin_family\n"));
}
It causes ("ping: invalid sin_family\n") message for IPv4, what is wrang.
It should be something like this (if supported/tested only IPv4):
if (from.sin_family != AF_INET) {
/* So far, supported only IPv4*/
LWIP_DEBUGF( PING_DEBUG, ("ping: invalid sin_family\n"));
}
Best regards,
Andrey Butok
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?47952>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #47952] ping_recv() does not work with IPv4,
Andrey Butok <=