MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / pbuf_header_impl

Function pbuf_header_impl

components/net/lwip/lwip-2.1.2/src/core/pbuf.c:615–623  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613}
614
615static u8_t
616pbuf_header_impl(struct pbuf *p, s16_t header_size_increment, u8_t force)
617{
618 if (header_size_increment < 0) {
619 return pbuf_remove_header(p, (size_t) - header_size_increment);
620 } else {
621 return pbuf_add_header_impl(p, (size_t)header_size_increment, force);
622 }
623}
624
625/**
626 * Adjusts the payload pointer to hide or reveal headers in the payload.

Callers 2

pbuf_headerFunction · 0.70
pbuf_header_forceFunction · 0.70

Calls 2

pbuf_remove_headerFunction · 0.85
pbuf_add_header_implFunction · 0.85

Tested by

no test coverage detected