Skip to content

Commit

Permalink
Disabling UDP in default configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
asynclabs committed Jul 19, 2009
1 parent d9e241c commit 4416694
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uip-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions uip.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4416694

Please sign in to comment.