Skip to content

Commit

Permalink
Fix filters on WLAN fields
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Sep 17, 2024
1 parent 3c62ed2 commit 6e92102
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/locales/en.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2274,7 +2274,7 @@ local lang = {
["traffic_direction"] = "Traffic Direction",
["user_agent"] = "User Agent",
["vlan_id"] = "VLAN",
["wlan_ssid"] = "SSID",
["wlan_ssid"] = "WLAN SSID",
["minor_connection_states"] = {
["0"] = "NO_STATE",
["1"] = "S0 - Connection attempt seen, no reply",
Expand Down
2 changes: 2 additions & 0 deletions scripts/lua/modules/http_lint.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,7 @@ local known_parameters = {
["mac"] = validateEmptyOr(validateListOfTypeInline(validateFilters(validateMac))), -- a MAC address
["cli_mac"] = validateEmptyOr(validateListOfTypeInline(validateFilters(validateMac))), -- a MAC address
["srv_mac"] = validateEmptyOr(validateListOfTypeInline(validateFilters(validateMac))), -- a MAC address
["apn_mac"] = validateEmptyOr(validateListOfTypeInline(validateFilters(validateMac))), -- a MAC address
["tskey"] = validateUnquoted, -- timeseries name
["peer1"] = validateHost, -- a Peer in a connection
["peer2"] = validateHost, -- another Peer in a connection
Expand All @@ -1719,6 +1720,7 @@ local known_parameters = {
["name"] = validateEmptyOr(validateListOfTypeInline(validateFilters(validateServer))), -- An IPv4 or IPv6 address or an Hostname
["cli_name"] = validateEmptyOr(validateListOfTypeInline(validateFilters(validateHostName))), -- An IPv4 or IPv6 address or an Hostname
["srv_name"] = validateEmptyOr(validateListOfTypeInline(validateFilters(validateHostName))), -- An IPv4 or IPv6 address or an Hostname
["wlan_ssid"] = validateEmptyOr(validateListOfTypeInline(validateFilters(validateUnquoted))),
["cli_port"] = validateListOfTypeInline(validateFilters(validatePort)), -- Client port
["srv_port"] = validateListOfTypeInline(validateFilters(validatePort)), -- Server port
["cli_asn"] = validateListOfTypeInline(validateFilters(validateASN)),
Expand Down
4 changes: 2 additions & 2 deletions scripts/lua/modules/tag_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -616,12 +616,12 @@ tag_utils.defined_tags = {
},
wlan_ssid = {
value_type = 'text',
i18n_label = i18n('db_search.tags.apn_mac'),
i18n_label = i18n('db_search.tags.wlan_ssid'),
operators = {'eq', 'neq', 'in', 'nin'}
},
apn_mac = {
value_type = 'mac',
i18n_label = i18n('db_search.tags.wlan_ssid'),
i18n_label = i18n('db_search.tags.apn_mac'),
operators = {'eq', 'neq'}
},
}
Expand Down

0 comments on commit 6e92102

Please sign in to comment.