3 * Copyright 2007, Jaap Keuter <jaap.keuter@xs4all.nl>
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
13 * Note: Adding a true_false_string here must be accompanied by an addition to
14 * both tfs.h and libwireshark*.symbols.
20 /** Returns the string representing the true or false value. */
21 const char *tfs_get_string(bool value
, const true_false_string
*tfs
)
24 return value
? "True" : "False";
25 return value
? tfs
->true_string
: tfs
->false_string
;
29 * A default set of true/false strings that dissectors can use for
30 * FT_BOOLEAN header fields.
32 const true_false_string tfs_yes_no
= { "Yes", "No" };
33 const true_false_string tfs_no_yes
= { "No", "Yes" };
34 const true_false_string tfs_set_notset
= { "Set", "Not set" };
35 const true_false_string tfs_enabled_disabled
= { "Enabled", "Disabled" };
36 const true_false_string tfs_disabled_enabled
= { "Disabled", "Enabled" };
37 const true_false_string tfs_ok_error
= { "Ok", "Error" };
38 const true_false_string tfs_error_ok
= { "Error", "Ok" };
39 const true_false_string tfs_success_fail
= { "Success", "Fail" };
40 const true_false_string tfs_fail_success
= { "Fail", "Success" };
41 const true_false_string tfs_on_off
= { "On", "Off" };
42 const true_false_string tfs_off_on
= { "Off", "On" };
43 const true_false_string tfs_ack_nack
= { "Ack", "Nack" };
44 const true_false_string tfs_odd_even
= { "Odd", "Even" };
45 const true_false_string tfs_allow_block
= { "Allow", "Block" };
46 const true_false_string tfs_restricted_not_restricted
= { "Restricted", "Not restricted" };
47 const true_false_string tfs_not_restricted_restricted
= { "Not restricted", "Restricted" };
48 const true_false_string tfs_accept_reject
= { "Accept", "Reject" };
49 const true_false_string tfs_more_nomore
= { "More", "No more" };
50 const true_false_string tfs_present_absent
= { "Present", "Absent" };
51 const true_false_string tfs_present_not_present
= { "Present", "Not Present" };
52 const true_false_string tfs_active_inactive
= { "Active", "Inactive" };
53 const true_false_string tfs_activated_deactivated
= { "Activated", "Deactivated" };
54 const true_false_string tfs_found_not_found
= { "Found", "Not found" };
55 const true_false_string tfs_command_response
= { "Command", "Response" };
56 const true_false_string tfs_response_command
= { "Response", "Command" };
57 const true_false_string tfs_capable_not_capable
= { "Capable", "Not capable" };
58 const true_false_string tfs_supported_not_supported
= { "Supported", "Not supported" };
59 const true_false_string tfs_not_supported_supported
= { "Not Supported", "Supported" };
60 const true_false_string tfs_used_notused
= { "Used", "Not used" };
61 const true_false_string tfs_high_low
= { "High", "Low" };
62 const true_false_string tfs_high_normal
= { "High", "Normal" };
63 const true_false_string tfs_low_normal
= { "Low", "Normal" };
64 const true_false_string tfs_pressed_not_pressed
= { "Pressed", "Not pressed" };
65 const true_false_string tfs_implemented_not_implemented
= { "Implemented", "Not Implemented" };
66 const true_false_string tfs_requested_not_requested
= { "Requested", "Not Requested" };
67 const true_false_string tfs_reliable_not_reliable
= { "Reliable", "Not Reliable" };
68 const true_false_string tfs_allowed_not_allowed
= { "Allowed", "Not Allowed" };
69 const true_false_string tfs_not_allowed_allowed
= { "Not Allowed", "Allowed" };
70 const true_false_string tfs_accepted_not_accepted
= { "Accepted", "Not Accepted" };
71 const true_false_string tfs_detected_not_detected
= { "Detected", "Not Detected" };
72 const true_false_string tfs_available_not_available
= { "Available", "Not available" };
73 const true_false_string tfs_shared_independent
= { "Shared", "Independent" };
74 const true_false_string tfs_valid_invalid
= { "Valid", "Invalid" };
75 const true_false_string tfs_invalid_valid
= { "Invalid", "Valid" };
76 const true_false_string tfs_group_unique_name
= { "Group name", "Unique name" };
77 const true_false_string tfs_inuse_not_inuse
= { "In use", "Not in use" };
78 const true_false_string tfs_critical_not_critical
= { "Critical", "Not critical" };
79 const true_false_string tfs_complete_incomplete
= { "Complete", "Incomplete" };
80 const true_false_string tfs_valid_not_valid
= { "Valid", "Not Valid" };
81 const true_false_string tfs_do_not_clear_clear
= { "Do not clear", "Clear" };
82 const true_false_string tfs_confirmed_unconfirmed
= { "Confirmed", "Unconfirmed" };
83 const true_false_string tfs_enforced_not_enforced
= { "Enforced", "Not enforced" };
84 const true_false_string tfs_possible_not_possible
= { "Possible", "Not possible" };
85 const true_false_string tfs_required_not_required
= { "Required", "Not required" };
86 const true_false_string tfs_registered_not_registered
= { "Registered", "Not registered" };
87 const true_false_string tfs_provisioned_not_provisioned
= { "Provisioned", "Not provisioned" };
88 const true_false_string tfs_included_not_included
= { "Included", "Not included" };
89 const true_false_string tfs_allocated_by_receiver_sender
= {"allocated by receiver", "allocated by sender"};
90 const true_false_string tfs_asynchronous_synchronous
= { "Asynchronous", "Synchronous" };
91 const true_false_string tfs_protocol_sensative_bit_transparent
= { "Protocol sensitive", "Bit transparent" };
92 const true_false_string tfs_full_half
= { "Full", "Half" };
93 const true_false_string tfs_acknowledged_not_acknowledged
= { "Acknowledged", "Not Acknowledged" };
94 const true_false_string tfs_segmentation_no_segmentation
= { "Segmentation", "No segmentation" };
95 const true_false_string tfs_response_request
= { "Response", "Request" };
96 const true_false_string tfs_defined_not_defined
= { "Defined", "Not defined" };
97 const true_false_string tfs_constructed_primitive
= { "Constructed", "Primitive" };
98 const true_false_string tfs_client_server
= { "Client", "Server" };
99 const true_false_string tfs_server_client
= { "Server", "Client" };
100 const true_false_string tfs_preferred_no_preference
= { "Preferred", "No preference" };
101 const true_false_string tfs_encrypt_do_not_encrypt
= { "Encrypt", "Do Not Encrypt" };
102 const true_false_string tfs_down_up
= { "Down", "Up" };
103 const true_false_string tfs_up_down
= { "Up", "Down" };
104 const true_false_string tfs_uplink_downlink
= { "Uplink", "Downlink" };
105 const true_false_string tfs_s2c_c2s
= { "Server to Client", "Client to Server" };
106 const true_false_string tfs_open_closed
= { "Open", "Closed" };
107 const true_false_string tfs_external_internal
= { "External", "Internal" };
108 const true_false_string tfs_changed_not_changed
= { "Changed", "Not Changed" };
109 const true_false_string tfs_needed_not_needed
= { "Needed", "Not Needed" };
110 const true_false_string tfs_selected_not_selected
= { "Selected", "Not Selected" };
111 const true_false_string tfs_add_drop
= { "Add", "Drop" };
112 const true_false_string tfs_no_extension_extension
= { "No Extension", "Extension" };
113 const true_false_string tfs_user_provider
= { "User", "Provider" };
114 const true_false_string tfs_applicable_not_applicable
= { "Applicable", "Not Applicable" };
115 const true_false_string tfs_current_not_yet
= { "Currently Applicable", "Not yet Applicable" };
116 const true_false_string tfs_should_be_traced_should_not_be_traced
= { "Should be traced", "Should not be traced" };
117 const true_false_string tfs_activate_do_not_activate
= { "Activate", "Do not activate" };
118 const true_false_string tfs_data_pdu_control_pdu
= { "Data PDU", "Control PDU" };
121 * Editor modelines - https://www.wireshark.org/tools/modelines.html
126 * indent-tabs-mode: nil
129 * vi: set shiftwidth=4 tabstop=8 expandtab:
130 * :indentSize=4:tabSize=8:noTabs=true: