[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Need help to understand the pbuf_header function????
From: |
Kelly Chan |
Subject: |
[lwip-users] Need help to understand the pbuf_header function???? |
Date: |
Tue, 3 Jun 2003 07:20:37 -0600 |
The function below shows the pbuf size by moving forward the payload ptr. I
understand we can strip of header by moving backward the payload ptr, I
don;t understand how can we expand the advance the payload ptr to accomdate
the new header. Will the memory corrupt by using this function??? Is it
memory safe?????
/* Make room for Ethernet header. */
if(pbuf_header(p, 14) != 0)
{
......
}
Looking forward to any explanation....
Kelly
- [lwip-users] Need help to understand the pbuf_header function????,
Kelly Chan <=