lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)


From: Bill Auerbach
Subject: [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)
Date: Mon, 01 Feb 2010 17:16:06 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

Follow-up Comment #20, bug #27352 (project lwip):

The difference is copying to a new variable and then passing the variable
address of the variable.  What is the benefit in this versus just passing the
IP address in the first place?  Are you meaning something like:

struct ip_hdr *pHdr;
struct ip_addr ipAddr;

pHdr = (struct ip_hdr *) p->payload;
ipAddr = pHdr->src.addr;
someCallback(&ipAddr);

And I'm thinking:

pHdr = (struct ip_hdr *) p->payload;
someCallback(pHdr->src.addr);


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27352>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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