mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-23 06:41:08 +00:00
Rename pbuf's "flgs" in "flags" (see in [lwip-devel] Last changes by Marc)
This commit is contained in:
parent
fbd5600563
commit
4f76bc42d7
@ -180,7 +180,7 @@ pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
q->type = type;
|
q->type = type;
|
||||||
q->flgs = 0;
|
q->flags = 0;
|
||||||
q->next = NULL;
|
q->next = NULL;
|
||||||
/* make previous pbuf point to this pbuf */
|
/* make previous pbuf point to this pbuf */
|
||||||
r->next = q;
|
r->next = q;
|
||||||
@ -243,8 +243,8 @@ pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type)
|
|||||||
}
|
}
|
||||||
/* set reference count */
|
/* set reference count */
|
||||||
p->ref = 1;
|
p->ref = 1;
|
||||||
/* set flgs */
|
/* set flags */
|
||||||
p->flgs = 0;
|
p->flags = 0;
|
||||||
LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE | 3, ("pbuf_alloc(length=%"U16_F") == %p\n", length, (void *)p));
|
LWIP_DEBUGF(PBUF_DEBUG | LWIP_DBG_TRACE | 3, ("pbuf_alloc(length=%"U16_F") == %p\n", length, (void *)p));
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
@ -302,7 +302,7 @@ tcp_input(struct pbuf *p, struct netif *inp)
|
|||||||
|
|
||||||
if (recv_data != NULL) {
|
if (recv_data != NULL) {
|
||||||
if(flags & TCP_PSH) {
|
if(flags & TCP_PSH) {
|
||||||
recv_data->flgs |= PBUF_FLAG_PUSH;
|
recv_data->flags |= PBUF_FLAG_PUSH;
|
||||||
}
|
}
|
||||||
/* Notify application that data has been received. */
|
/* Notify application that data has been received. */
|
||||||
TCP_EVENT_RECV(pcb, recv_data, ERR_OK, err);
|
TCP_EVENT_RECV(pcb, recv_data, ERR_OK, err);
|
||||||
|
@ -84,7 +84,7 @@ struct pbuf {
|
|||||||
u8_t /*pbuf_type*/ type;
|
u8_t /*pbuf_type*/ type;
|
||||||
|
|
||||||
/** misc flags */
|
/** misc flags */
|
||||||
u8_t flgs;
|
u8_t flags;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the reference count always equals the number of pointers
|
* the reference count always equals the number of pointers
|
||||||
|
Loading…
x
Reference in New Issue
Block a user