X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/807268084f8cf4b02aaaa7ece7071a276c9d61bc..f8903fddbc2a42d68bfe42a0fb6cf93ed3a14277:/net/net.c?ds=sidebyside 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);