mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-07 16:13:38 +08:00
Replace several occurences of stdint types by lwIPs portability typedefs
Fixes bug #55405: Usage of uint8_t instead of ui8_t in TCP code
This commit is contained in:
@@ -679,7 +679,7 @@ lowpan6_input(struct pbuf *p, struct netif *netif)
|
||||
/* check for duplicate */
|
||||
lrh = lowpan6_data.reass_list;
|
||||
while (lrh != NULL) {
|
||||
uint8_t discard = 0;
|
||||
u8_t discard = 0;
|
||||
lrh_next = lrh->next_packet;
|
||||
if ((lrh->sender_addr.addr_len == src.addr_len) &&
|
||||
(memcmp(lrh->sender_addr.addr, src.addr, src.addr_len) == 0)) {
|
||||
|
||||
@@ -107,7 +107,7 @@ static struct lowpan6_link_addr rfc7668_peer_addr;
|
||||
* @see LWIP_RFC7668_LINUX_WORKAROUND_PUBLIC_ADDRESS
|
||||
*/
|
||||
void
|
||||
ble_addr_to_eui64(uint8_t *dst, const uint8_t *src, int public_addr)
|
||||
ble_addr_to_eui64(u8_t *dst, const u8_t *src, int public_addr)
|
||||
{
|
||||
/* according to RFC7668 ch 3.2.2. */
|
||||
memcpy(dst, src, 3);
|
||||
@@ -136,7 +136,7 @@ ble_addr_to_eui64(uint8_t *dst, const uint8_t *src, int public_addr)
|
||||
*
|
||||
*/
|
||||
void
|
||||
eui64_to_ble_addr(uint8_t *dst, const uint8_t *src)
|
||||
eui64_to_ble_addr(u8_t *dst, const u8_t *src)
|
||||
{
|
||||
/* according to RFC7668 ch 3.2.2. */
|
||||
memcpy(dst,src,3);
|
||||
@@ -386,7 +386,7 @@ rfc7668_input(struct pbuf * p, struct netif *netif)
|
||||
if ((i%4)==0) {
|
||||
LWIP_DEBUGF(LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG, ("\n"));
|
||||
}
|
||||
LWIP_DEBUGF(LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG, ("%2X ", *((uint8_t *)p->payload+i)));
|
||||
LWIP_DEBUGF(LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG, ("%2X ", *((u8_t *)p->payload+i)));
|
||||
}
|
||||
LWIP_DEBUGF(LWIP_RFC7668_IP_UNCOMPRESSED_DEBUG, ("\np->len: %d\n", p->len));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user