|
64 | 64 | { |
65 | 65 | "name": "dest_ip", |
66 | 66 | "type": "conditional", |
67 | | - "condition": "| regex dest=\"(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\\.|$)){4}\"", |
68 | | - "validity": "if(dest_ip==dest,dest_ip,null())", |
| 67 | + "condition": "dest_ip=*", |
| 68 | + "validity": "if(match(dest_ip, \"(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\\.|$)){4}\"),dest_ip,null())", |
69 | 69 | "comment": "The IP address of the destination." |
70 | 70 | }, |
71 | 71 | { |
72 | 72 | "name": "dest_mac", |
73 | 73 | "type": "conditional", |
74 | | - "condition": "| regex dest=\"^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$\"", |
75 | | - "validity": "if(dest==dest_mac,dest_mac,null())", |
| 74 | + "condition": "dest_mac=*", |
| 75 | + "validity": "if(match(dest_mac,\"^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$\"),dest_mac,null())", |
76 | 76 | "comment": "The destination TCP/IP layer 2 Media Access Control (MAC) address of a packet's destination, such as 06:10:9f:eb:8f:14. Note: Always force lower case on this field and use colons instead of dashes, spaces, or no separator." |
77 | 77 | }, |
78 | 78 | { |
|
269 | 269 | { |
270 | 270 | "name": "src_ip", |
271 | 271 | "type": "conditional", |
272 | | - "condition": "| regex src=\"(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\\.|$)){4}\"", |
273 | | - "validity": "if(src_ip==src,src_ip,null())", |
| 272 | + "condition": "src_ip=*", |
| 273 | + "validity": "if(match(src_ip, \"(?:[0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4}|(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(?:\\.|$)){4}\"),src_ip,null())", |
274 | 274 | "comment": "The ip address of the source." |
275 | 275 | }, |
276 | 276 | { |
277 | 277 | "name": "src_mac", |
278 | 278 | "type": "conditional", |
279 | | - "condition": "| regex src=\"^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$\"", |
280 | | - "validity": "if(src==src_mac,src_mac,null())", |
| 279 | + "condition": "src_mac=*", |
| 280 | + "validity": "if(match(src_mac,\"^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$\"),src_mac,null())", |
281 | 281 | "comment": "The source TCP/IP layer 2 Media Access Control (MAC) address of a packet's destination, such as 06:10:9f:eb:8f:14. Note: Always force lower case on this field and use colons instead of dashes, spaces, or no separator." |
282 | 282 | }, |
283 | 283 | { |
|
0 commit comments