# class NetworkNic

*Defined at src/network/network_nic.h#31*

Inherits from NetworkNode



## Functions

### NetworkNic

*public void NetworkNic(Simulator *const sim, NodeId id, uint16_t total_ports, SwitchBuffer *const buf, Time nic_latency, Bytes mice_elephant_threshold, PacketSeq ooo_threshold, CCType cc_type, LBType lb_type, Bytes cc_init_cwnd, Bytes cc_max_cwnd, const NicSchedulingWeights & schedw)*

### recv_pkt

*public void recv_pkt(Packet & pkt, PortId ingress)*

### attach_host

*public void attach_host(Host * host)*

### detach_host

*public void detach_host(Host * host)*

### send_flow

*public void send_flow(NodeId dst, Bytes size, FlowPriority desired)*

### send_flow

*public void send_flow(PacketGroups group_mask, Bytes size, FlowPriority desired)*

### set_status

*public void set_status(NodeStatus s, Time new_latency)*

### set_port_blacklisted

*public void set_port_blacklisted(PortId port, bool blacklisted)*

### is_port_blacklisted

*public bool is_port_blacklisted(PortId port)*

### telemetry

*public const NicTelemetry & telemetry()*

*Defined at src/network/network_nic.h#59*



