mirror of
https://github.com/curl/curl.git
synced 2026-07-26 05:27:15 +03:00
unit3400: repair after capsule_encap_udp_hdr went static
Access the static function with UNITTEST as designed.
Follow-up to 73c2b4b435
Closes #21788
This commit is contained in:
parent
59320082b0
commit
d1b482caec
3 changed files with 10 additions and 3 deletions
|
|
@ -141,9 +141,13 @@ static CURLcode capsule_decode_varint_at(struct bufq *recvbufq,
|
|||
* @param hdrlen Size of `hdr` in bytes
|
||||
* @param payload_len Length of the UDP payload that follows
|
||||
* @return Number of header bytes written, or 0 on error
|
||||
*
|
||||
* @unittest 3400
|
||||
*/
|
||||
static size_t capsule_encap_udp_hdr(uint8_t *hdr, size_t hdrlen,
|
||||
size_t payload_len)
|
||||
UNITTEST size_t capsule_encap_udp_hdr(uint8_t *hdr, size_t hdrlen,
|
||||
size_t payload_len);
|
||||
UNITTEST size_t capsule_encap_udp_hdr(uint8_t *hdr, size_t hdrlen,
|
||||
size_t payload_len)
|
||||
{
|
||||
size_t off = 0;
|
||||
DEBUGASSERT(hdrlen >= HTTP_CAPSULE_HEADER_MAX_SIZE);
|
||||
|
|
|
|||
|
|
@ -46,6 +46,9 @@
|
|||
CURLcode Curl_capsule_encap_udp_datagram(struct dynbuf *dyn,
|
||||
const void *buf, size_t blen);
|
||||
|
||||
struct Curl_easy;
|
||||
struct Curl_cfilter;
|
||||
|
||||
/**
|
||||
* Process one UDP capsule from buffer into raw datagram payload bytes.
|
||||
* @param cf Connection filter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue