1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/unittests/tests-gnrc_udp/tests-gnrc_udp.h
Yonezawa-T2 e92c355aba udp: fixed a corner case for checksum computation.
Fixes #4842.

RFC 2460 section 8.1 (https://tools.ietf.org/html/rfc2460#section-8.1)
states:
> if that computation yields a result of zero, it must be changed to hex
> FFFF for placement in the UDP header.
2016-02-22 20:30:31 +09:00

38 lines
657 B
C

/*
* Copyright (C) 2016 Takuo Yonezawa
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @addtogroup unittests
* @{
*
* @file
* @brief Unittests for the ``gnrc_udp`` module
*
* @author Takuo Yonezawa <Yonezawa-T2@mail.dnp.co.jp>
*/
#ifndef TESTS_GNRC_UDP_H_
#define TESTS_GNRC_UDP_H_
#include "embUnit.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief The entry point of this test suite.
*/
void tests_gnrc_udp(void);
#ifdef __cplusplus
}
#endif
#endif /* TESTS_GNRC_UDP_H_ */
/** @} */