+ struct nic *nic = netif->state;
+ struct pbuf *q;
+ unsigned char pkt[1600];
+ unsigned int len = 0;
+
+ 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);
+
+ nic->transmit(len, pkt);
+
+ LINK_STATS_INC(link.xmit);
+
+ return ERR_OK;
+}
+
+static err_t _init(struct netif *netif)
+{
+ struct nic *nic = netif->state;
+
+ LWIP_ASSERT("netif != NULL", (netif != NULL));