You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/02/26 13:41:19 UTC

[incubator-nuttx-apps] branch pr104 updated: IP Header issue for IPv4 fixed

This is an automated email from the ASF dual-hosted git repository.

gnutt pushed a commit to branch pr104
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git


The following commit(s) were added to refs/heads/pr104 by this push:
     new a3565b2  IP Header issue for IPv4 fixed
a3565b2 is described below

commit a3565b218add5b2f3fb09e2f6243c28fe8882f84
Author: Bhindhiya <56...@users.noreply.github.com>
AuthorDate: Wed Feb 26 11:27:37 2020 +0530

    IP Header issue for IPv4 fixed
---
 examples/ipforward/ipforward.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/ipforward/ipforward.c b/examples/ipforward/ipforward.c
index 8baf89a..af363a1 100644
--- a/examples/ipforward/ipforward.c
+++ b/examples/ipforward/ipforward.c
@@ -673,8 +673,8 @@ static FAR void *ipfwd_sender(FAR void *arg)
       ipv4->ttl         = IP_TTL;
       ipv4->proto       = proto;
 
-      net_ipv4addr_hdrcopy(ipv4->srcipaddr,  fwd->ia_srcipaddr);
-      net_ipv4addr_hdrcopy(ipv4->destipaddr, fwd->ia_destipaddr);
+      net_ipv4addr_hdrcopy(ipv4->srcipaddr,  &fwd->ia_srcipaddr);
+      net_ipv4addr_hdrcopy(ipv4->destipaddr, &fwd->ia_destipaddr);
 
       /* Calculate IP checksum. */