#include <connections.h>
Collaboration diagram for connection_t:

Data Fields | |
| GSList * | packet_id |
| time_t | timestamp |
| int | socket |
| nufw_session_t * | tls |
| tracking_t | tracking |
| iface_nfo_t | iface_nfo |
| uint32_t | user_id |
| uint32_t | mark |
| char * | username |
| GSList * | acl_groups |
| GSList * | user_groups |
| user_cached_datas * | cacheduserdatas |
| gchar * | os_sysname |
| gchar * | os_release |
| gchar * | os_version |
| gchar * | app_name |
| auth_state_t | state |
| decision_t | decision |
| gchar * | log_prefix |
| gint | flags |
| time_t | expire |
| int | nufw_version |
| int | client_version |
| int | auth_quality |
It contains all datas relative to a packet
Definition at line 107 of file connections.h.
| GSList* connection_t::acl_groups |
ACL related groups.
Contains the list of acl corresponding to the IPv4 header ACL group list (of type acl_group)
Definition at line 126 of file connections.h.
Referenced by acl_check_and_decide(), authpckt_new_connection(), authpckt_new_connection_v3(), duplicate_connection(), free_connection(), get_acls_from_cache(), search_and_fill_completing(), take_decision(), and user_request().
| gchar* connection_t::app_name |
Application name (full path)
Definition at line 133 of file connections.h.
Referenced by acl_check(), acl_create_and_alloc_key(), build_insert_request(), create_message_packet(), duplicate_connection(), external_ip_auth(), finalize_packet(), free_connection(), pgsql_insert(), print_connection(), search_and_fill_complete_of_authreq(), search_and_fill_complete_of_userpckt(), user_process_field_app(), and user_request().
Definition at line 147 of file connections.h.
Referenced by external_ip_auth(), search_and_fill_complete_of_authreq(), search_and_fill_complete_of_userpckt(), take_decision(), and user_request().
Definition at line 128 of file connections.h.
Referenced by duplicate_connection(), free_connection(), get_users_from_cache(), search_and_fill_complete_of_authreq(), and user_request().
Store version of the client which has sent the packet
Definition at line 145 of file connections.h.
Referenced by search_and_fill_complete_of_authreq(), search_and_fill_complete_of_userpckt(), and user_request().
Decision on packet.
Definition at line 137 of file connections.h.
Referenced by apply_decision(), authpckt_new_connection(), authpckt_new_connection_v3(), external_ip_auth(), print_connection(), send_auth_response(), take_decision(), treat_nufw_request(), and user_request().
| time_t connection_t::expire |
Expire time (never: -1)
Definition at line 141 of file connections.h.
Referenced by authpckt_new_connection(), authpckt_new_connection_v3(), take_decision(), and user_request().
| gint connection_t::flags |
Flags used to store some properties
Definition at line 139 of file connections.h.
Referenced by authpckt_new_connection(), authpckt_new_connection_v3(), duplicate_connection(), external_ip_auth(), finalize_packet(), log_state_open(), log_user_packet(), update_connection_datas(), and user_request().
Information about network interfaces
Definition at line 115 of file connections.h.
Referenced by acl_check(), acl_create_and_alloc_key(), build_insert_request(), print_connection(), search_and_fill_complete_of_authreq(), search_and_fill_complete_of_userpckt(), and user_packet_logs().
| gchar* connection_t::log_prefix |
Log prefix.
Definition at line 138 of file connections.h.
Referenced by create_log_prefix(), duplicate_connection(), free_connection(), pgsql_insert(), update_connection_datas(), user_check_and_decide(), and user_packet_logs().
| uint32_t connection_t::mark |
Number used for marking set to user numeric identity at start
Definition at line 118 of file connections.h.
Referenced by finalize_packet(), localid_insert_message(), parse_v4_fields(), search_and_fill_complete_of_userpckt(), and send_auth_response().
Store the version of the nufw server which has sent the request
Definition at line 144 of file connections.h.
Referenced by authpckt_new_connection(), authpckt_new_connection_v3(), search_and_fill_complete_of_userpckt(), and send_auth_response().
| gchar* connection_t::os_release |
Operating system release
Definition at line 131 of file connections.h.
Referenced by acl_check(), acl_create_and_alloc_key(), build_insert_request(), create_message_packet(), duplicate_connection(), free_connection(), pgsql_insert(), print_connection(), search_and_fill_complete_of_authreq(), search_and_fill_complete_of_userpckt(), and user_request().
| gchar* connection_t::os_sysname |
Operating system name
Definition at line 130 of file connections.h.
Referenced by acl_check(), acl_create_and_alloc_key(), build_insert_request(), create_message_packet(), duplicate_connection(), external_ip_auth(), finalize_packet(), free_connection(), pgsql_insert(), print_connection(), search_and_fill_complete_of_authreq(), search_and_fill_complete_of_userpckt(), and user_request().
| gchar* connection_t::os_version |
Operating system version
Definition at line 132 of file connections.h.
Referenced by acl_check(), acl_create_and_alloc_key(), build_insert_request(), create_message_packet(), duplicate_connection(), free_connection(), pgsql_insert(), print_connection(), search_and_fill_complete_of_authreq(), search_and_fill_complete_of_userpckt(), and user_request().
| GSList* connection_t::packet_id |
Netfilter unique identifier
Definition at line 108 of file connections.h.
Referenced by apply_decision(), authpckt_new_connection(), authpckt_new_connection_v3(), duplicate_connection(), free_connection(), localid_insert_message(), print_connection(), search_and_fill_complete_of_authreq(), search_and_fill_complete_of_userpckt(), search_and_fill_completing(), search_and_fill_done(), search_and_fill_ready(), take_decision(), user_check_and_decide(), user_process_field_hello(), and user_request().
Socket (file descriptor) from which NuFW request is coming
Definition at line 110 of file connections.h.
Referenced by search_and_fill_complete_of_userpckt(), and treat_nufw_request().
State of the packet
Definition at line 135 of file connections.h.
Referenced by acl_check_and_decide(), apply_decision(), duplicate_connection(), external_ip_auth(), free_connection(), localid_insert_message(), parse_dgram(), search_and_fill_catchall(), search_and_fill_complete_of_authreq(), search_and_fill_complete_of_userpckt(), search_and_fill_completing(), search_and_fill_done(), search_and_fill_ready(), search_and_fill_update(), treat_nufw_request(), and user_request().
| time_t connection_t::timestamp |
Packet arrival time (seconds)
Definition at line 109 of file connections.h.
Referenced by authpckt_new_connection(), authpckt_new_connection_v3(), create_from_template(), log_state_open(), pgsql_insert(), pgsql_update_close(), user_packet_logs(), and user_request().
TLS connection to NuFW from which comes the packet
Definition at line 111 of file connections.h.
Referenced by create_message_packet(), search_and_fill_complete_of_userpckt(), send_auth_response(), take_decision(), and treat_nufw_request().
IPv4 connection tracking (headers)
Definition at line 113 of file connections.h.
Referenced by acl_check(), acl_create_and_alloc_key(), build_insert_request(), create_message_packet(), external_ip_auth(), localid_insert_message(), log_state_open(), parse_dgram(), pgsql_insert(), pgsql_update_close(), print_connection(), search_and_push(), send_auth_response(), take_decision(), user_check_and_decide(), user_packet_logs(), user_process_field_ipv4(), user_process_field_ipv6(), and user_request().
| GSList* connection_t::user_groups |
User groups
Definition at line 127 of file connections.h.
Referenced by authpckt_new_connection(), authpckt_new_connection_v3(), duplicate_connection(), external_ip_auth(), finalize_packet(), free_connection(), get_users_from_cache(), localid_insert_message(), search_and_fill_complete_of_authreq(), take_decision(), and user_request().
| uint32_t connection_t::user_id |
User identifier (32-bit)
Definition at line 117 of file connections.h.
Referenced by create_message_packet(), external_ip_auth(), finalize_packet(), get_users_from_cache(), localid_insert_message(), pgsql_insert(), search_and_fill_complete_of_authreq(), take_decision(), and user_request().
| char* connection_t::username |
User name
Definition at line 119 of file connections.h.
Referenced by authpckt_new_connection_v3(), build_insert_request(), create_message_packet(), duplicate_connection(), external_ip_auth(), free_connection(), get_users_from_cache(), localid_insert_message(), pgsql_insert(), print_connection(), search_and_fill_complete_of_authreq(), user_check_and_decide(), user_packet_logs(), and user_request().
1.4.7