lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] What is new typ "ip_addr_p_t" in the iphdr?


From: Marco Jakobs
Subject: [lwip-users] What is new typ "ip_addr_p_t" in the iphdr?
Date: Mon, 30 Apr 2012 11:01:51 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120420 Thunderbird/12.0

Hi,

after i finally successfully changed from LwIP 1.3.2 to 1.4.0, i struggle on (actually) two compile errors in our NAT implementation in a project.

The two lines are:

  nat_entry->dest = iphdr->dest;
  nat_entry->source = iphdr->src;

which gives back the compiler error "incompatible types when assigning to type 'struct ip_addr' from type 'ip_addr_p_t'"

In IP.h i see that the definition of "src" and "dest" in the struct "ip_adr" have changed from "ip_addr" to "ip_addr_p_t", which is the address in a packed format.

How can i convert this "packet" format into the good old "ip_addr"-format to get the errors away from those lines above?

Thanks,
Marco



reply via email to

[Prev in Thread] Current Thread [Next in Thread]