Lines Matching refs:nil_pcb

127 static struct flow_divert_pcb           nil_pcb;  variable
383 new_pcb->log_level = nil_pcb.log_level; in flow_divert_pcb_create()
460 FDLOG(LOG_ERR, &nil_pcb, "failed to append the type (%d)", type); in flow_divert_packet_append_tlv()
466 FDLOG(LOG_ERR, &nil_pcb, "failed to append the length (%u)", length); in flow_divert_packet_append_tlv()
472 FDLOG0(LOG_ERR, &nil_pcb, "failed to append the value"); in flow_divert_packet_append_tlv()
538 …FDLOG(LOG_ERR, &nil_pcb, "Length of %u TLV (%u) is larger than remaining packet data (%lu)", type,… in flow_divert_packet_get_tlv()
592 FDLOG(LOG_ERR, &nil_pcb, "Failed to lookup group for control unit %u", ctl_unit); in flow_divert_packet_verify_hmac()
627 FDLOG0(LOG_WARNING, &nil_pcb, "HMAC in token does not match computed HMAC"); in flow_divert_packet_verify_hmac()
826 FDLOG0(LOG_ERR, &nil_pcb, "Ran out of trie nodes while splitting an existing node"); in flow_divert_trie_insert()
843 FDLOG0(LOG_ERR, &nil_pcb, "Ran out of child maps while splitting an existing node"); in flow_divert_trie_insert()
875 FDLOG0(LOG_ERR, &nil_pcb, "Ran out of trie nodes while inserting a new leaf"); in flow_divert_trie_insert()
881 FDLOG0(LOG_ERR, &nil_pcb, "Ran out of bytes while inserting a new leaf"); in flow_divert_trie_insert()
890 FDLOG0(LOG_ERR, &nil_pcb, "Ran out of child maps while inserting a new leaf"); in flow_divert_trie_insert()
957 …FDLOG(LOG_WARNING, &nil_pcb, "Found multiple processes with UUID %s with different signing identif… in flow_divert_find_proc_by_uuid_callout()
965 FDLOG(LOG_WARNING, &nil_pcb, "Failed to find a process with UUID %s", uuid_str); in flow_divert_find_proc_by_uuid_callout()
986 …FDLOG(LOG_INFO, &nil_pcb, "Found process %d with signing identifier %s", proc_getpid(p), signing_i… in flow_divert_find_proc_by_uuid_filter()
1009 if (LOG_INFO <= nil_pcb.log_level) { in flow_divert_find_proc_by_uuid()
1012 FDLOG(LOG_INFO, &nil_pcb, "Looking for process with UUID %s", uuid_str); in flow_divert_find_proc_by_uuid()
1221 …FDLOG(LOG_NOTICE, &nil_pcb, "flow_divert_send_packet: ctl_enqueuembuf returned an error: %d", erro… in flow_divert_send_packet()
1255 FDLOG(LOG_ERR, &nil_pcb, "Failed to append %s: %d", domain_name, error); in flow_divert_append_domain_name()
2958 FDLOG(LOG_ERR, &nil_pcb, "failed to get the key size: %d", error); in flow_divert_handle_group_init()
2963 FDLOG(LOG_ERR, &nil_pcb, "Invalid key size: %u", key_size); in flow_divert_handle_group_init()
2969 nil_pcb.log_level = (uint8_t)log_level; in flow_divert_handle_group_init()
2975 FDLOG(LOG_ERR, &nil_pcb, "Skipping (re)initialization of defunct group %u", group->ctl_unit); in flow_divert_handle_group_init()
2988 FDLOG(LOG_ERR, &nil_pcb, "failed to get the token key: %d", error); in flow_divert_handle_group_init()
3001 FDLOG(LOG_INFO, &nil_pcb, "group %u order is %u", group->ctl_unit, order); in flow_divert_handle_group_init()
3098 …FDLOG(LOG_ERR, &nil_pcb, "Invalid prefix count (%d) or an error occurred while reading the prefix … in flow_divert_handle_app_map_create()
3110 …FDLOG(LOG_ERR, &nil_pcb, "Failed to get the length of the signing identifier at offset %d: %d", cu… in flow_divert_handle_app_map_create()
3115 FDLOG0(LOG_ERR, &nil_pcb, "Overflow while incrementing number of bytes"); in flow_divert_handle_app_map_create()
3124 FDLOG0(LOG_NOTICE, &nil_pcb, "No signing identifiers"); in flow_divert_handle_app_map_create()
3130 FDLOG0(LOG_ERR, &nil_pcb, "Overflow while computing the number of nodes"); in flow_divert_handle_app_map_create()
3136 FDLOG0(LOG_ERR, &nil_pcb, "Overflow while computing the number of maps"); in flow_divert_handle_app_map_create()
3142 …FDLOG(LOG_NOTICE, &nil_pcb, "Invalid bytes count (%lu), nodes count (%lu) or maps count (%lu)", by… in flow_divert_handle_app_map_create()
3146 FDLOG(LOG_INFO, &nil_pcb, "Nodes count = %lu, child maps count = %lu, bytes_count = %lu", in flow_divert_handle_app_map_create()
3153 FDLOG0(LOG_ERR, &nil_pcb, "Overflow while computing trie memory sizes"); in flow_divert_handle_app_map_create()
3159 …FDLOG(LOG_ERR, &nil_pcb, "Trie memory size (%lu) is too big (maximum is %u)", trie_memory_size, FL… in flow_divert_handle_app_map_create()
3167 FDLOG(LOG_ERR, &nil_pcb, "Failed to allocate %lu bytes of memory for the signing ID trie", in flow_divert_handle_app_map_create()
3203 …FDLOG(LOG_ERR, &nil_pcb, "Failed to get the length of the signing identifier at offset %d while bu… in flow_divert_handle_app_map_create()
3211 … FDLOG(LOG_ERR, &nil_pcb, "Failed to read the signing identifier at offset %d: %d", cursor, error); in flow_divert_handle_app_map_create()
3221 FDLOG0(LOG_ERR, &nil_pcb, "No place to put signing ID for insertion"); in flow_divert_handle_app_map_create()
3247 error = flow_divert_packet_init(&nil_pcb, FLOW_DIVERT_PKT_FLOW_STATES, &packet); in flow_divert_handle_flow_states_request()
3249 FDLOG(LOG_ERR, &nil_pcb, "flow_divert_packet_init failed: %d, cannot send flow states", error); in flow_divert_handle_flow_states_request()
3256 …FDLOG0(LOG_WARNING, &nil_pcb, "flow_divert_handle_flow_states_request: group send queue is not emp… in flow_divert_handle_flow_states_request()
3294 …FDLOG(LOG_NOTICE, &nil_pcb, "flow_divert_handle_flow_states_request: ctl_enqueuembuf returned an e… in flow_divert_handle_flow_states_request()
3307 …FDLOG(LOG_ERR, &nil_pcb, "got a bad packet, length (%lu) < sizeof hdr (%lu)", mbuf_pkthdr_len(pack… in flow_divert_input()
3314 FDLOG(LOG_ERR, &nil_pcb, "mbuf_copydata failed for the header: %d", error); in flow_divert_input()
3333 FDLOG(LOG_WARNING, &nil_pcb, "got an unknown message type: %d", hdr.packet_type); in flow_divert_input()
3342 …FDLOG(LOG_NOTICE, &nil_pcb, "got a %s message from group %d for an unknown pcb: %u", flow_divert_p… in flow_divert_input()
3531 …FDLOG(LOG_ERR, &nil_pcb, "Invalid target address, family = %u, length = %u", toaddr->sa_family, to… in flow_divert_append_target_endpoint_tlv()
4242 FDLOG(LOG_ERR, &nil_pcb, "flow_divert_init failed (%d), cannot use flow divert", g_init_result); in flow_divert_token_set()
4281 FDLOG(LOG_ERR, &nil_pcb, "Failed to get the key unit from the token: %d", error); in flow_divert_token_set()
4289 FDLOG(LOG_ERR, &nil_pcb, "Failed to get the control socket unit from the token: %d", error); in flow_divert_token_set()
4295 FDLOG(LOG_ERR, &nil_pcb, "Failed to get the aggregate unit from the token: %d", error); in flow_divert_token_set()
4306 FDLOG(LOG_ERR, &nil_pcb, "HMAC verfication failed: %d", hmac_error); in flow_divert_token_set()
4437 FDLOG(LOG_NOTICE, &nil_pcb, "Destroying group %u", group->ctl_unit); in flow_divert_group_destroy()
4554 FDLOG(LOG_ERR, &nil_pcb, "Flow divert connect fail, unit mismatch %u != %u", in flow_divert_kctl_connect()
4572 FDLOG(LOG_INFO, &nil_pcb, "disconnecting group %d", unit); in flow_divert_kctl_disconnect()
4657 FDLOG0(LOG_DEBUG, &nil_pcb, "trying ctl_enqueuembuf again"); in flow_divert_kctl_rcvd()
4661 …FDLOG(LOG_NOTICE, &nil_pcb, "flow_divert_kctl_rcvd: ctl_enqueuembuf returned an error: %d", error); in flow_divert_kctl_rcvd()
4720 FDLOG(LOG_ERR, &nil_pcb, "flow_divert_kctl_init - ctl_register failed: %d\n", result); in flow_divert_kctl_init()
4730 memset(&nil_pcb, 0, sizeof(nil_pcb)); in flow_divert_init()
4731 nil_pcb.log_level = LOG_NOTICE; in flow_divert_init()