Permalink
Browse files

Disabling UDP in default configuration

  • Loading branch information...
1 parent d9e241c commit 44166947480861ccd129e7aced2e26ef185e54e4 @asynclabs committed Jul 19, 2009
Showing with 5 additions and 3 deletions.
  1. +3 −3 uip-conf.h
  2. +2 −0 uip.c
View
@@ -107,14 +107,14 @@ typedef unsigned short uip_stats_t;
*
* \hideinitializer
*/
-#define UIP_CONF_UDP 1
+#define UIP_CONF_UDP 0
/**
* UDP checksums on or off
*
* \hideinitializer
*/
-#define UIP_CONF_UDP_CHECKSUMS 1
+#define UIP_CONF_UDP_CHECKSUMS 0
/**
* uIP statistics on or off
@@ -128,7 +128,7 @@ typedef unsigned short uip_stats_t;
*
* \hideinitializer
*/
-#define UIP_CONF_BROADCAST 1
+#define UIP_CONF_BROADCAST 0
/**
* The maximum amount of concurrent UDP connections.
View
2 uip.c
@@ -1872,7 +1872,9 @@ uip_process(u8_t flag)
BUF->tcpchksum = 0;
BUF->tcpchksum = ~(uip_tcpchksum());
+#if UIP_UDP
ip_send_nolen:
+#endif /* UIP_UDP */
#if UIP_CONF_IPV6
BUF->vtc = 0x60;

0 comments on commit 4416694

Please sign in to comment.