static void transmit_wrapper(p4_port_t egress, void *pkt, int len) { if (log_level >= P4_LOG_LEVEL_TRACE) { packet_log(egress, pkt, len); } if (bmi_port_send(port_mgr, egress, pkt, len) < 0) { printf("Error sending packet\n"); } }
void transmit_fn_(int port_num, const char *buffer, int len) override { bmi_port_send(port_mgr, port_num, buffer, len); }
/* Wrapper for transmit operation */ static void transmit_wrapper(p4_port_t egress, void *pkt, int len) { if (bmi_port_send(port_mgr, egress, pkt, len) < 0) { printf("Error sending packet\n"); } }