Top Level Namespace
Defined Under Namespace
Modules: TcpdumpParser
Constant Summary collapse
- TCPDUMP_REGEX =
/ (?<date_time>\d+-\d+-\d+\s\d+:\d+:\d+)\.\d+ # date et heure \s+ (?<mac_addr_from>[a-zA-Z0-9]{2}(?::[a-zA-Z0-9]{2}){5}) # mac-address \s+ > \s+ (?<mac_addr_to>[a-zA-Z0-9]{2}(?::[a-zA-Z0-9]{2}){5}) # mac-address .* # ethertype IP4 length\s(?<length_1>\d+): (?:\s+ (?<ip_addr_from>\d+(?:\.\d*){3}|[a-zA-Z0-9]{1,4}(?::[a-zA-Z0-9]{0,4})+)\.\d+ # ip adress \s+ > \s+ (?<ip_addr_to>\d+(?:\.\d*){3}|[a-zA-Z0-9]{1,4}(?::[a-zA-Z0-9]{0,4})+)\.\d+ # ip adress .* # ethertype IP4 length\s(?<length_2>\d+))? /x