net: silence more debug messages
This commit is contained in:
parent
fc9ca3d955
commit
c38143fa81
@ -253,8 +253,6 @@ static void send_packet(struct e1000_nic * device, uint8_t* payload, size_t payl
|
||||
spin_lock(device->tx_lock);
|
||||
device->tx_index = read_command(device, E1000_REG_TXDESCTAIL);
|
||||
|
||||
printf("eth: sending packet?\n");
|
||||
|
||||
memcpy(device->tx_virt[device->tx_index], payload, payload_size);
|
||||
device->tx[device->tx_index].length = payload_size;
|
||||
device->tx[device->tx_index].cmd = CMD_EOP | CMD_IFCS | CMD_RS; //| CMD_RPS;
|
||||
|
@ -46,7 +46,7 @@ void net_eth_handle(struct ethernet_packet * frame, fs_node_t * nic) {
|
||||
break;
|
||||
case ETHERNET_TYPE_IPV4: {
|
||||
struct ipv4_packet * packet = (struct ipv4_packet*)&frame->payload;
|
||||
printf("net: eth: %s: rx ipv4 packet\n", nic->name);
|
||||
//printf("net: eth: %s: rx ipv4 packet\n", nic->name);
|
||||
if (packet->source != 0xFFFFFFFF) {
|
||||
net_arp_cache_add(nic->device, packet->source, frame->source, 0);
|
||||
}
|
||||
|
@ -391,7 +391,6 @@ static int tcp_get_port(sock_t * sock) {
|
||||
}
|
||||
|
||||
static long sock_tcp_recv(sock_t * sock, struct msghdr * msg, int flags) {
|
||||
printf("tcp: recv called\n");
|
||||
if (!sock->priv[0]) {
|
||||
printf("tcp: recv() but socket has no port\n");
|
||||
return -EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user