mirror of https://github.com/ARMmbed/mbed-os.git
Removed random and tcp_isn modules header dependencies to lwip conf
parent
5fdd7239d9
commit
23f8ac903e
|
@ -14,6 +14,9 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "lwip/opt.h"
|
||||
#include "lwip/debug.h"
|
||||
#include "lwip/def.h"
|
||||
#include "lwip_random.h"
|
||||
|
||||
#if FEATURE_COMMON_PAL
|
||||
|
|
|
@ -17,10 +17,6 @@
|
|||
#ifndef LWIP_HDR_RANDOM_H
|
||||
#define LWIP_HDR_RANDOM_H
|
||||
|
||||
#include "lwip/opt.h"
|
||||
#include "lwip/debug.h"
|
||||
#include "lwip/def.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
|
@ -70,7 +70,7 @@
|
|||
* Author: David van Moolenbroek <david@minix3.org>
|
||||
*/
|
||||
|
||||
#include "lwip_tcp_isn.h"
|
||||
#include "lwip/opt.h"
|
||||
#include "lwip/ip_addr.h"
|
||||
#include "lwip/sys.h"
|
||||
#include <string.h>
|
||||
|
@ -122,13 +122,16 @@ lwip_init_tcp_isn(u32_t boot_time, const u8_t *secret_16_bytes)
|
|||
* @param remote_port The remote port number, in host-byte order.
|
||||
* @return The ISN to use for the new TCP connection.
|
||||
*/
|
||||
|
||||
u32_t
|
||||
lwip_hook_tcp_isn(const ip_addr_t *local_ip, u16_t local_port,
|
||||
const ip_addr_t *remote_ip, u16_t remote_port)
|
||||
lwip_hook_tcp_isn(const void *local_ip_ptr, u16_t local_port,
|
||||
const void *remote_ip_ptr, u16_t remote_port)
|
||||
{
|
||||
lwip_md5_context ctx;
|
||||
u8_t output[16];
|
||||
u32_t isn;
|
||||
const ip_addr_t *local_ip = local_ip_ptr;
|
||||
const ip_addr_t *remote_ip = remote_ip_ptr;
|
||||
|
||||
#if LWIP_IPV4 && LWIP_IPV6
|
||||
if (IP_IS_V6(local_ip))
|
||||
|
|
|
@ -30,16 +30,14 @@
|
|||
#ifndef LWIP_HDR_CONTRIB_ADDONS_TCP_ISN_H
|
||||
#define LWIP_HDR_CONTRIB_ADDONS_TCP_ISN_H
|
||||
|
||||
#include "lwip/opt.h"
|
||||
#include "lwip/ip_addr.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void lwip_init_tcp_isn(u32_t boot_time, const u8_t *secret_16_bytes);
|
||||
u32_t lwip_hook_tcp_isn(const ip_addr_t *local_ip, u16_t local_port,
|
||||
const ip_addr_t *remote_ip, u16_t remote_port);
|
||||
void lwip_init_tcp_isn(uint32_t boot_time, const uint8_t *secret_16_bytes);
|
||||
uint32_t lwip_hook_tcp_isn(const void *local_ip, uint16_t local_port,
|
||||
const void *remote_ip, uint16_t remote_port);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
#include "netif/lwip_ethernet.h"
|
||||
#include "emac_api.h"
|
||||
#include "ppp_lwip.h"
|
||||
#include "lwip_tcp_isn.h"
|
||||
|
||||
static nsapi_error_t mbed_lwip_err_remap(err_t err);
|
||||
|
||||
|
|
|
@ -309,7 +309,6 @@
|
|||
#define DNS_TABLE_SIZE 2
|
||||
#define DNS_MAX_NAME_LENGTH 128
|
||||
|
||||
#include <lwip/arch.h>
|
||||
#include "lwip_random.h"
|
||||
#include "lwip_tcp_isn.h"
|
||||
#define LWIP_HOOK_TCP_ISN lwip_hook_tcp_isn
|
||||
|
|
Loading…
Reference in New Issue