flash led on tcp get, fix pingbacks on rpl build, patch web data for params

This commit is contained in:
David Kopf 2011-08-31 12:13:31 -04:00
parent dfdae5b02b
commit 3520cc0bae
3 changed files with 18 additions and 5 deletions

View file

@ -101,7 +101,11 @@ void rs232_send(uint8_t port, unsigned char c);
void void
raven_ping6(void) raven_ping6(void)
{ {
#define PING_GOOGLE 0 #if UIP_CONF_IPV6_RPL||1
/* No default router, so pick on someone else */
#define PING_GOOGLE 1
seqno++;
#endif
UIP_IP_BUF->vtc = 0x60; UIP_IP_BUF->vtc = 0x60;
UIP_IP_BUF->tcflow = 1; UIP_IP_BUF->tcflow = 1;

View file

@ -2,10 +2,15 @@
#include <avr/eeprom.h> #include <avr/eeprom.h>
/* Link layer ipv6 address will become fe80::2 */
uint8_t mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02}; /* Link layer ipv6 address will become fe80::ff:fe:1 */
uint8_t server_name[16] EEMEM = "huginn"; uint8_t default_mac_address[8] PROGMEM = {0x02, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01};
uint8_t domain_name[30] EEMEM = "localhost"; uint8_t default_server_name[16] PROGMEM = "ATMEGA128rfa1";
uint8_t default_domain_name[30] PROGMEM = "localhost";
uint8_t eemem_mac_address[8] EEMEM = {0x02, 0x00, 0x00, 0xff, 0xfe, 0x00, 0x00, 0x01};
uint8_t eemem_server_name[16] EEMEM = "ATMEGA128rfa1";
uint8_t eemem_domain_name[30] EEMEM = "localhost";
const char data_404_html[140] PROGMEM = { const char data_404_html[140] PROGMEM = {
/* /404.html */ /* /404.html */

View file

@ -459,6 +459,10 @@ httpd_appcall(void *state)
if (1) { if (1) {
#else #else
struct httpd_state *s = (struct httpd_state *)state; struct httpd_state *s = (struct httpd_state *)state;
#if RF230BB_CONF_LEDONPORTE1
extern uint16_t ledtimer;
PORTE|=(1<<PE1);ledtimer=1000; //turn on led, set counter for turnoff
#endif
if(uip_closed() || uip_aborted() || uip_timedout()) { if(uip_closed() || uip_aborted() || uip_timedout()) {
if(s != NULL) { if(s != NULL) {
memb_free(&conns, s); memb_free(&conns, s);