X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/6bbb3f38917de86fd250db11e1bea396a4146e72..54d4b877c72b90fe057143b1bc6e49718a3cb82a:/net/net.c diff --git a/net/net.c b/net/net.c index 7fa7c46..598ea75 100644 --- a/net/net.c +++ b/net/net.c @@ -96,19 +96,16 @@ void eth_poll() static err_t _transmit(struct netif *netif, struct pbuf *p) { struct nic *nic = netif->state; - struct pbuf *q; - unsigned char pkt[1600]; - unsigned int len = 0; - for(q = p; q != NULL; q = q->next) +/* for(q = p; q != NULL; q = q->next) { memcpy(pkt + len, q->payload, q->len); len += q->len; - } + }*/ - outputf("NIC: Transmit packet: %d bytes", len); + outputf("NIC: Transmit packet"); - nic->transmit(len, pkt); + nic->transmit(p); LINK_STATS_INC(link.xmit);