# class Packet

*Defined at src/network/packet.h#18*

## Functions

### Packet

*public void Packet(NodeId src_node, PortId src_port, NodeId dst_node, PortId dst_port, PacketProtocol proto, FlowPriority prio, PacketSeq seq, FlowId flow, uint16_t entropy, uint8_t notifications, Bytes payload_bytes)*

### src_node

*public NodeId src_node()*

### src_port

*public PortId src_port()*

### dst_node

*public NodeId dst_node()*

### dst_port

*public PortId dst_port()*

### protocol

*public PacketProtocol protocol()*

### seq

*public PacketSeq seq()*

### flow_id

*public FlowId flow_id()*

### entropy

*public uint32_t entropy()*

### set_src_node

*public void set_src_node(NodeId n)*

### set_src_port

*public void set_src_port(PortId p)*

### set_dst_node

*public void set_dst_node(NodeId n)*

### set_dst_port

*public void set_dst_port(PortId p)*

### set_seq

*public void set_seq(PacketSeq s)*

### set_flow_id

*public void set_flow_id(FlowId f)*

### set_entropy

*public void set_entropy(uint32_t e)*

### set_protocol

*public void set_protocol(PacketProtocol p)*

### set_payload_size

*public void set_payload_size(Bytes size)*

### set_ecn_enabled

*public void set_ecn_enabled(bool v)*

### set_ecn_marked

*public void set_ecn_marked(bool v)*

### set_eof

*public void set_eof(bool v)*

### is_ecn_enabled

*public bool is_ecn_enabled()*

### is_ecn

*public bool is_ecn()*

### is_eof

*public bool is_eof()*

### priority

*public FlowPriority priority()*

### priority_raw

*public uint8_t priority_raw()*

### header_size

*public Bytes header_size()*

### payload_size

*public Bytes payload_size()*

### total_size

*public Bytes total_size()*

### groups

*public PacketGroups groups()*

### set_groups

*public void set_groups(PacketGroups g)*

### add_groups

*public void add_groups(PacketGroups gmask)*



