This commit is contained in:
Carl-Benedikt Krüger 2011-06-29 00:01:53 +02:00
parent 8d8ff9d087
commit cb5a4559c2
2 changed files with 4 additions and 3 deletions

View file

@ -764,8 +764,8 @@ err_t mmnif_tx(struct netif* netif, struct pbuf* p)
dest_intr = mmnif_read_rx_inv_intr(dest_ip);
#ifdef DEBUG_MMNIF
DEBUGPRINTF("\n SEND 0x%.8X with length: %d\n",(char*)mpb_start_address + (dest_ip -1)*mpb_size + 2 + pos * 1792,p->tot_len +2);
hex_dump(p->tot_len +2, p->payload);
DEBUGPRINTF("\n SEND 0x%.8X with length: %d\n",(char*)mpb_start_address + (dest_ip -1)*mpb_size + pos * 1792,p->tot_len +2);
hex_dump(p->tot_len, p->payload);
#endif
mmnif_write_rx_queue(dest_ip, queued);
@ -979,7 +979,7 @@ static void mmnif_rx(struct netif* netif)
#ifdef DEBUG_MMNIF
DEBUGPRINTF("\n RECIEVED - 0x%.8X with legth: %d\n",data + pos,length +2);
DEBUGPRINTF("\n RECIEVED - 0x%.8X with legth: %d\n",data + pos,length+2);
hex_dump(length+2,data + pos);
#endif

View file

@ -240,6 +240,7 @@ void* client_task(void* e)
if (connect(sd,(struct sockaddr *) &pin, sizeof(pin)) == -1) {
kprintf("connectfail");
return;
}
kprintf("sending");
/* send a message to the server PORT on machine HOST */