mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Merge pull request #507 from bloqaudio/fix/build-uip-modules-per-config
uip: build the optional modules only when configured
This commit is contained in:
3 files changed
+22
No files matched your search
@@ -64,6 +64,8 @@
|
||||
|
||||
#include "../rtl837x_common.h"
|
||||
|
||||
#if UIP_FORWARDING
|
||||
|
||||
/*
|
||||
* The list of registered network interfaces.
|
||||
*/
|
||||
@@ -535,3 +537,5 @@ uip_fw_periodic(void)
|
||||
}
|
||||
}
|
||||
/*------------------------------------------------------------------------------*/
|
||||
|
||||
#endif /* UIP_FORWARDING */
|
||||
@@ -43,6 +43,8 @@
|
||||
#include "uip-neighbor.h"
|
||||
#include "../rtl837x_common.h"
|
||||
|
||||
#if UIP_CONF_IPV6
|
||||
|
||||
#pragma codeseg BANK1
|
||||
#pragma constseg BANK1
|
||||
|
||||
@@ -170,3 +172,5 @@ uip_neighbor_lookup(__xdata uip_ipaddr_t ipaddr)
|
||||
return NULL;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#endif /* UIP_CONF_IPV6 */
|
||||
@@ -464,6 +464,20 @@ extern __xdata uint8_t uip_buf[UIP_CONF_BUFFER_SIZE+2];
|
||||
#define UIP_BROADCAST UIP_CONF_BROADCAST
|
||||
#endif /* UIP_CONF_BROADCAST */
|
||||
|
||||
/**
|
||||
* Build the IP forwarding module.
|
||||
*
|
||||
* uip-fw.c forwards packets between several network interfaces. A
|
||||
* single-interface device does not call it and should not pay for it.
|
||||
*
|
||||
* \hideinitializer
|
||||
*/
|
||||
#ifndef UIP_CONF_FORWARDING
|
||||
#define UIP_FORWARDING 0
|
||||
#else /* UIP_CONF_FORWARDING */
|
||||
#define UIP_FORWARDING UIP_CONF_FORWARDING
|
||||
#endif /* UIP_CONF_FORWARDING */
|
||||
|
||||
/**
|
||||
* Print out a uIP log message.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user