net/icmp/icmp_conn.c and net/icmpv6/icmpv6_conn.c: Change the type of id in icmpv[6]_findconn to uint16_t
This commit is contained in:
parent
23f14c2660
commit
40b0e98d25
@ -223,7 +223,8 @@ FAR struct icmp_conn_s *icmp_nextconn(FAR struct icmp_conn_s *conn);
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_ICMP_SOCKET
|
||||
FAR struct icmp_conn_s *icmp_findconn(FAR struct net_driver_s *dev, uint8_t id);
|
||||
FAR struct icmp_conn_s *icmp_findconn(FAR struct net_driver_s *dev,
|
||||
uint16_t id);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
@ -273,8 +274,9 @@ void icmp_poll(FAR struct net_driver_s *dev);
|
||||
****************************************************************************/
|
||||
|
||||
#ifdef CONFIG_NET_ICMP_SOCKET
|
||||
ssize_t icmp_sendto(FAR struct socket *psock, FAR const void *buf, size_t len,
|
||||
int flags, FAR const struct sockaddr *to, socklen_t tolen);
|
||||
ssize_t icmp_sendto(FAR struct socket *psock, FAR const void *buf,
|
||||
size_t len, int flags, FAR const struct sockaddr *to,
|
||||
socklen_t tolen);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -265,7 +265,8 @@ FAR struct icmp_conn_s *icmp_nextconn(FAR struct icmp_conn_s *conn)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct icmp_conn_s *icmp_findconn(FAR struct net_driver_s *dev, uint8_t id)
|
||||
FAR struct icmp_conn_s *icmp_findconn(FAR struct net_driver_s *dev,
|
||||
uint16_t id)
|
||||
{
|
||||
FAR struct icmp_conn_s *conn;
|
||||
|
||||
|
@ -589,7 +589,7 @@ FAR struct icmpv6_conn_s *icmpv6_nextconn(FAR struct icmpv6_conn_s *conn);
|
||||
|
||||
#ifdef CONFIG_NET_ICMPv6_SOCKET
|
||||
FAR struct icmpv6_conn_s *icmpv6_findconn(FAR struct net_driver_s *dev,
|
||||
uint8_t id);
|
||||
uint16_t id);
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
|
@ -265,7 +265,8 @@ FAR struct icmpv6_conn_s *icmpv6_nextconn(FAR struct icmpv6_conn_s *conn)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct icmpv6_conn_s *icmpv6_findconn(FAR struct net_driver_s *dev, uint8_t id)
|
||||
FAR struct icmpv6_conn_s *icmpv6_findconn(FAR struct net_driver_s *dev,
|
||||
uint16_t id)
|
||||
{
|
||||
FAR struct icmpv6_conn_s *conn;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user