DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
Classes | |
struct | ipaddr |
struct | ipv4_udp_packet |
struct | ipv4_udp_packet_hdr |
Enumerations | |
enum | { MIN_TOS = 0 , DEFAULT_TOS = MIN_TOS , DEFAULT_TTL = 8 } |
Functions | |
rte_le16_t | packet_fill (struct ipv4_udp_packet_hdr *packet_hdr) |
void | pktgen_udp_hdr_ctor (struct ipv4_udp_packet_hdr *packet_hdr, rte_le16_t packet_len, int sport=55677, int dport=55678) |
void | pktgen_ipv4_ctor (struct ipv4_udp_packet_hdr *packet_hdr, rte_le16_t packet_len, const std::string &src_ip_addr="0.0.0.0", const std::string &dst_ip_addr="0.0.0.0") |
void | pktgen_ether_hdr_ctor (struct ipv4_udp_packet_hdr *packet_hdr, const std::string &dst_mac_address="0a:00:10:c2:15:c1", const int port_id=0) |
bool | get_ether_addr6 (const char *s0, struct rte_ether_addr *ea) |
void | construct_packets_for_burst (const int port_id, const std::string &dst_mac_addr, const int payload_bytes, const int burst_size, rte_mbuf **bufs) |
static int8_t | get_xdigit (char ch) |
std::uint16_t | get_payload_size_udp_hdr (struct rte_udp_hdr *udp_hdr) |
std::uint16_t | get_payload_size (struct ipv4_udp_packet_hdr *ipv4_udp_hdr) |
rte_be32_t | ip_address_dotdecimal_to_binary (std::uint8_t byte1, std::uint8_t byte2, std::uint8_t byte3, std::uint8_t byte4) |
struct ipaddr | ip_address_binary_to_dotdecimal (rte_le32_t binary_ipv4_address) |
std::string | get_ipv4_decimal_addr_str (struct ipaddr ipv4_address) |
char * | get_udp_payload (const rte_mbuf *mbuf) |
void | hex_digits_to_stream (std::ostringstream &ostrs, int value, char separator=':', char fill='0', int digits=2) |
std::string | get_udp_header_str (struct rte_mbuf *mbuf) |
std::string | get_udp_packet_str (struct rte_mbuf *mbuf) |
void | add_file_contents_to_vector (const std::string &filename, std::vector< char > &buffervec) |
std::vector< std::pair< const void *, int > > | get_ethernet_packets (const std::vector< char > &buffervec) |
void | set_daqethheader_test_values (detdataformats::DAQEthHeader &daqethheader_obj) noexcept |
std::string | get_rte_mbuf_str (const rte_mbuf *mbuf) noexcept |
std::string | get_opmon_string (const StreamUID &sid) |
Variables | |
struct dunedaq::dpdklibs::udp::ipv4_udp_packet_hdr | __rte_packed |
anonymous enum |
Enumerator | |
---|---|
MIN_TOS | |
DEFAULT_TOS | |
DEFAULT_TTL |
Definition at line 19 of file PacketCtor.cpp.
void dunedaq::dpdklibs::udp::add_file_contents_to_vector | ( | const std::string & | filename, |
std::vector< char > & | buffervec ) |
Definition at line 168 of file Utils.cpp.
void dunedaq::dpdklibs::udp::construct_packets_for_burst | ( | const int | port_id, |
const std::string & | dst_mac_addr, | ||
const int | payload_bytes, | ||
const int | burst_size, | ||
rte_mbuf ** | bufs ) |
Definition at line 202 of file PacketCtor.cpp.
bool dunedaq::dpdklibs::udp::get_ether_addr6 | ( | const char * | s0, |
struct rte_ether_addr * | ea ) |
Definition at line 37 of file PacketCtor.cpp.
std::vector< std::pair< const void *, int > > dunedaq::dpdklibs::udp::get_ethernet_packets | ( | const std::vector< char > & | buffervec | ) |
Definition at line 188 of file Utils.cpp.
std::string dunedaq::dpdklibs::udp::get_ipv4_decimal_addr_str | ( | struct ipaddr | ipv4_address | ) |
Definition at line 56 of file Utils.cpp.
std::string dunedaq::dpdklibs::udp::get_opmon_string | ( | const StreamUID & | sid | ) |
std::uint16_t dunedaq::dpdklibs::udp::get_payload_size | ( | struct ipv4_udp_packet_hdr * | ipv4_udp_hdr | ) |
std::uint16_t dunedaq::dpdklibs::udp::get_payload_size_udp_hdr | ( | struct rte_udp_hdr * | udp_hdr | ) |
|
noexcept |
Definition at line 246 of file Utils.cpp.
std::string dunedaq::dpdklibs::udp::get_udp_header_str | ( | struct rte_mbuf * | mbuf | ) |
Definition at line 108 of file Utils.cpp.
std::string dunedaq::dpdklibs::udp::get_udp_packet_str | ( | struct rte_mbuf * | mbuf | ) |
Definition at line 153 of file Utils.cpp.
char * dunedaq::dpdklibs::udp::get_udp_payload | ( | const rte_mbuf * | mbuf | ) |
Definition at line 70 of file Utils.cpp.
|
static |
Definition at line 25 of file PacketCtor.cpp.
|
inline |
struct ipaddr dunedaq::dpdklibs::udp::ip_address_binary_to_dotdecimal | ( | rte_le32_t | binary_ipv4_address | ) |
rte_be32_t dunedaq::dpdklibs::udp::ip_address_dotdecimal_to_binary | ( | std::uint8_t | byte1, |
std::uint8_t | byte2, | ||
std::uint8_t | byte3, | ||
std::uint8_t | byte4 ) |
rte_le16_t dunedaq::dpdklibs::udp::packet_fill | ( | struct ipv4_udp_packet_hdr * | packet_hdr | ) |
Definition at line 66 of file PacketCtor.cpp.
void dunedaq::dpdklibs::udp::pktgen_ether_hdr_ctor | ( | struct ipv4_udp_packet_hdr * | packet_hdr, |
const std::string & | router_mac_address, | ||
const int | port_id ) |
pktgen_ether_hdr_ctor - Ethernet header constructor routine.
DESCRIPTION Construct the ethernet header for a given packet buffer.
RETURNS: Pointer to memory after the ethernet header.
SEE ALSO:
Definition at line 183 of file PacketCtor.cpp.
void dunedaq::dpdklibs::udp::pktgen_ipv4_ctor | ( | struct ipv4_udp_packet_hdr * | packet_hdr, |
rte_le16_t | packet_len, | ||
const std::string & | src_ip_addr, | ||
const std::string & | dst_ip_addr ) |
pktgen_ipv4_ctor - Construct the IPv4 header for a packet
DESCRIPTION Constructor for the IPv4 header for a given packet.
RETURNS: N/A
SEE ALSO:
Definition at line 119 of file PacketCtor.cpp.
void dunedaq::dpdklibs::udp::pktgen_udp_hdr_ctor | ( | struct ipv4_udp_packet_hdr * | packet_hdr, |
rte_le16_t | packet_len, | ||
int | sport, | ||
int | dport ) |
pktgen_udp_hdr_ctor - UDP header constructor routine.
DESCRIPTION Construct the UDP header in a packer buffer.
RETURNS: next header location
SEE ALSO:
Definition at line 95 of file PacketCtor.cpp.
|
noexcept |
Definition at line 232 of file Utils.cpp.
struct dunedaq::dpdklibs::udp::ipv4_udp_packet_hdr dunedaq::dpdklibs::udp::__rte_packed |