Пример #1
0
void uboot_push_packet_len(int len) {
    PRINTK("pushed len = %d\n", len);
    if (len >= 2000) {
        printf("NE2000: packet too big\n");
        return;
    }
    dp83902a_recv(&pbuf[0], len);

    /*Just pass it to the upper layer*/
    net_process_received_packet(&pbuf[0], len);
}
Пример #2
0
void push_packet_len(struct nic_priv_data *dp, int len)
{
	vmm_printf("pushed len = %d\n", len);
	if (len >= 2000) {
		vmm_printf("NE2000: packet too big\n");
		return;
	}
	dp83902a_recv(dp, len);

	/* FIXME: Just pass it to the upper layer*/
	//NetReceive(&pbuf[0], len);
}
Пример #3
0
void uboot_push_packet_len(int len) {
	PRINTK("pushed len = %d, nrx = %d\n", len, nrx);
	if (len>=2000) {
		printf("NE2000: packet too big\n");
		return;
	}
	if (nrx >= NB) {
		printf("losing packets in rx\n");
		return;
	}
	plen[nrx] = len;
	dp83902a_recv(&pbuf[nrx*2000], len);
	nrx++;
}