Skip to content

Commit f797124

Browse files
koumajoscejkato2
andauthored
Coding style
Co-authored-by: Tomas Cejka <[email protected]>
1 parent bb63e96 commit f797124

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

input/parser.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -620,14 +620,10 @@ void parse_packet(parser_opt_t *opt, struct timeval ts, const uint8_t *data, uin
620620
}
621621
else if (opt->datalink == DLT_LINUX_SLL){
622622
data_offset = parse_sll(data, caplen, pkt);
623-
}
624-
else if (opt->datalink == DLT_RAW){
625-
if ((data[0] & 0xF0) == 0x40)
626-
{
623+
} else if (opt->datalink == DLT_RAW) {
624+
if ((data[0] & 0xF0) == 0x40) {
627625
pkt->ethertype = ETH_P_IP;
628-
}
629-
else if ((data[0] & 0xF0) == 0x60)
630-
{
626+
} else if ((data[0] & 0xF0) == 0x60) {
631627
pkt->ethertype = ETH_P_IPV6;
632628
}
633629
}

0 commit comments

Comments
 (0)