mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 16:55:41 +08:00
Update to FreeBSD stable/12 2020-02-10
Git mirror commit 0d1c391321b34b3025cf0e72f2231d836ff76da8.
This commit is contained in:
@@ -74,6 +74,7 @@ ppi_print(netdissect_options *ndo,
|
||||
}
|
||||
|
||||
hdr = (const ppi_header_t *)p;
|
||||
ND_TCHECK_16BITS(&hdr->ppi_len);
|
||||
len = EXTRACT_LE_16BITS(&hdr->ppi_len);
|
||||
if (caplen < len) {
|
||||
/*
|
||||
@@ -87,6 +88,7 @@ ppi_print(netdissect_options *ndo,
|
||||
ND_PRINT((ndo, "[|ppi]"));
|
||||
return (len);
|
||||
}
|
||||
ND_TCHECK_32BITS(&hdr->ppi_dlt);
|
||||
dlt = EXTRACT_LE_32BITS(&hdr->ppi_dlt);
|
||||
|
||||
if (ndo->ndo_eflag)
|
||||
@@ -110,6 +112,8 @@ ppi_print(netdissect_options *ndo,
|
||||
hdrlen = 0;
|
||||
}
|
||||
return (len + hdrlen);
|
||||
trunc:
|
||||
return (caplen);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user