2022-09-28 19:00:58 +0000 | marked best answer | Is there a way to write a display filter macro to define a variable for multiple IP addresses? I am attempting to write a macro that acts as a variable for multiple IP address. Something similar to the following: (Found this as an example on wireshark.org) Name: private_ipv4 Text: $1 == 192.168.0.0/16 or $1 == 172.16.0.0/12 or $1 == 10.0.0.0/8 This format fails with the error "wrong number of arguments for macro 'private_ipv4', expecting 1 instead of 0. I want to be able to call a variable in a filter instead of typing out all of the IP addresses. |
2022-09-28 19:00:58 +0000 | received badge | ● Scholar (source) |
2022-09-28 19:00:53 +0000 | answered a question | Is there a way to write a display filter macro to define a variable for multiple IP addresses? That did the trick. I did some studying up on the membership operator too. Thank you very much! |
2022-09-28 19:00:53 +0000 | received badge | ● Rapid Responder |
2022-09-27 19:55:21 +0000 | asked a question | Is there a way to write a display filter macro to define a variable for multiple IP addresses? Is there a way to write a display filter macro to define a variable for multiple IP addresses? I am attempting to write |
2022-09-27 19:55:21 +0000 | asked a question | How do you write a display filter macro defining multiple IP addresses as a variable? How do you write a display filter macro defining multiple IP addresses as a variable? I am attempting to write a macro t |
2022-09-27 19:55:20 +0000 | asked a question | How do I write a macro to define multiple IP address spaces into a variable? How do I write a macro to define multiple IP address spaces into a variable? I am attempting to write a macro that acts |