Skip to content
Snippets Groups Projects
Commit a8607283 authored by Björn Töpel's avatar Björn Töpel Committed by Daniel Borkmann
Browse files

selftests/bpf: Fix style warnings

parent 449f0874
No related branches found
No related tags found
No related merge requests found
...@@ -734,8 +734,8 @@ static void worker_pkt_validate(void) ...@@ -734,8 +734,8 @@ static void worker_pkt_validate(void)
break; break;
/*do not increment pktcounter if !(tos=0x9 and ipv4) */ /*do not increment pktcounter if !(tos=0x9 and ipv4) */
if ((((struct iphdr *)(pkt_node_rx_q->pkt_frame + if ((((struct iphdr *)(pkt_node_rx_q->pkt_frame +
sizeof(struct ethhdr)))->version == IP_PKT_VER) sizeof(struct ethhdr)))->version == IP_PKT_VER) &&
&& (((struct iphdr *)(pkt_node_rx_q->pkt_frame + sizeof(struct ethhdr)))->tos == (((struct iphdr *)(pkt_node_rx_q->pkt_frame + sizeof(struct ethhdr)))->tos ==
IP_PKT_TOS)) { IP_PKT_TOS)) {
payloadseqnum = *((uint32_t *)(pkt_node_rx_q->pkt_frame + PKT_HDR_SIZE)); payloadseqnum = *((uint32_t *)(pkt_node_rx_q->pkt_frame + PKT_HDR_SIZE));
if (debug_pkt_dump && payloadseqnum != EOT) { if (debug_pkt_dump && payloadseqnum != EOT) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment