• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7800-V1.0.2.28/package/qca-nss-ecm/src/

Lines Matching refs:node

148 							/* Slots of the node hash table */
234 * Normally only the node refers to the interfaces which it is reachable upon.
297 struct ecm_db_node_instance *hash_next; /* Next node in the chain of nodes */
298 struct ecm_db_node_instance *hash_prev; /* previous node in the chain of nodes */
299 uint8_t address[ETH_ALEN]; /* RO: MAC Address of this node */
305 * Nodes keep this information for rapid iteration of connections e.g. when a node 'goes down' we
308 struct ecm_db_connection_instance *from_connections; /* list of connections made from this node */
309 struct ecm_db_connection_instance *to_connections; /* list of connections made to this node */
313 struct ecm_db_connection_instance *from_nat_connections; /* list of NAT connections made from this node */
314 struct ecm_db_connection_instance *to_nat_connections; /* list of NAT connections made to this node */
322 struct ecm_db_node_instance *node_next; /* The next node within the same iface nodes list */
323 struct ecm_db_node_instance *node_prev; /* The previous node within the same iface nodes list */
326 uint32_t time_added; /* RO: DB time stamp when the node was added into the database */
329 uint64_t from_data_total; /* Total of data sent by this node */
330 uint64_t to_data_total; /* Total of data sent to this node */
331 uint64_t from_packet_total; /* Total of packets sent by this node */
332 uint64_t to_packet_total; /* Total of packets sent to this node */
339 struct ecm_db_iface_instance *iface; /* The interface to which this node relates */
587 * the HOST refer to the node, e.g. IP address to a MAC address.
590 * and so we record the node information directly here.
635 * As well as keeping a reference to the node which this connection uses the nodes
821 uint32_t flags; /* Flags for this instance node */
822 uint32_t hash_index; /* Hash index of this node */
1662 * Return address of the node used when sending packets to the 'to' side.
1673 * Return address of the node used when sending packets to the 'from' side.
1684 * Return address of the node used when sending packets to the 'to' NAT side.
1695 * Return address of the node used when sending packets to the 'from' NAT side.
2411 DEBUG_TRACE("%p: node ref %d\n", ni, ni->refs);
2609 * Obtain a ref to the first node instance, if any
2626 * Return the next node in the list given a node
2941 * Remove connection from its "from node" node connection list
2944 DEBUG_ASSERT(ci->from_node->from_connections == ci, "%p: from node conn table bad, got: %p\n", ci, ci->from_node->from_connections);
2956 * Remove connection from its "to node" node connection list
2959 DEBUG_ASSERT(ci->to_node->to_connections == ci, "%p: to node conn table bad, got: %p\n", ci, ci->to_node->to_connections);
2971 * Remove connection from its "from nat node" node connection list
2974 DEBUG_ASSERT(ci->from_nat_node->from_nat_connections == ci, "%p: from nat node conn table bad, got: %p\n", ci, ci->from_nat_node->from_nat_connections);
2986 * Remove connection from its "to nat node" node connection list
2989 DEBUG_ASSERT(ci->to_nat_node->to_nat_connections == ci, "%p: to nat node conn table bad, got: %p\n", ci, ci->to_nat_node->to_nat_connections);
3395 * Deref a node. Removing it on the last ref and destroying it.
3403 DEBUG_TRACE("%p: node deref %d\n", ni, ni->refs);
3431 DEBUG_ASSERT(ecm_db_nodes == ni, "%p: node table bad\n", ni);
3459 * Unlink it from the iface node list
3480 DEBUG_TRACE("%p: Throw node removed event\n", ni);
3505 * Now release the iface instance if the node had one
3518 * Decrease global node count
3522 DEBUG_ASSERT(ecm_db_node_count >= 0, "%p: node count wrap\n", ni);
3999 * Lookup and return a node reference if any
4006 DEBUG_TRACE("Lookup node with addr %pM\n", address);
4026 DEBUG_TRACE("node found %p\n", ni);
4912 * Return node reference
4931 * Return node reference
5286 * Return a reference to the first node made from this iface
6863 * Add this connection into the FROM node
6875 * Add this connection into the TO node
6887 * Add this connection into the FROM NAT node
6899 * Add this connection into the TO NAT node
7254 * Add a node instance into the database
7322 * Insert node into the iface nodes list
7337 DEBUG_TRACE("%p: Throw node added event\n", ni);
8477 * Prepare a node message
8501 DEBUG_TRACE("Prep node msg for %p\n", ni);
8504 * Create a small xml stats block for our managed node, like:
8505 * <node address="" hosts="" time_added="" from_data_total="" to_data_total="" />
8507 * Extract information from the node for inclusion into the message
8528 if ((result = ecm_state_prefix_add(sfi, "node"))) {
10155 * Allocate a node instance
10480 * Return the next tuple instance node and
10966 * Obtain a ref to the first connection instance of "from list" of node, if any
10968 static inline struct ecm_db_connection_instance *ecm_db_node_from_connections_get_and_ref_first(struct ecm_db_node_instance *node)
10971 DEBUG_CHECK_MAGIC(node, ECM_DB_NODE_INSTANCE_MAGIC, "%p: magic failed", node);
10973 ci = node->from_connections;
11000 * Obtain a ref to the first connection instance of a "to list" of node, if any
11002 static inline struct ecm_db_connection_instance *ecm_db_node_to_connections_get_and_ref_first(struct ecm_db_node_instance *node)
11005 DEBUG_CHECK_MAGIC(node, ECM_DB_NODE_INSTANCE_MAGIC, "%p: magic failed", node);
11007 ci = node->to_connections;
11034 * Obtain a ref to the first connection instance of a "from_nat list" of node, if any
11036 static inline struct ecm_db_connection_instance *ecm_db_node_from_nat_connections_get_and_ref_first(struct ecm_db_node_instance *node)
11039 DEBUG_CHECK_MAGIC(node, ECM_DB_NODE_INSTANCE_MAGIC, "%p: magic failed", node);
11041 ci = node->from_nat_connections;
11068 * Obtain a ref to the first connection instance of a "to_nat list" of node, if any
11070 static inline struct ecm_db_connection_instance *ecm_db_node_to_nat_connections_get_and_ref_first(struct ecm_db_node_instance *node)
11073 DEBUG_CHECK_MAGIC(node, ECM_DB_NODE_INSTANCE_MAGIC, "%p: magic failed", node);
11075 ci = node->to_nat_connections;
11124 * traverse from_list of a node and calls ecm_db_connection_decelerate_and_defunct()
11127 void ecm_db_traverse_node_from_connection_list_and_decelerate(struct ecm_db_node_instance *node)
11134 ci = ecm_db_node_from_connections_get_and_ref_first(node);
11145 DEBUG_INFO("%p: Defuncting node's from connection list complete\n", node);
11150 * traverse to_list of a node and calls ecm_db_connection_decelerate_and_defunct()
11153 void ecm_db_traverse_node_to_connection_list_and_decelerate(struct ecm_db_node_instance *node)
11160 ci = ecm_db_node_to_connections_get_and_ref_first(node);
11171 DEBUG_INFO("%p: Defuncting node's to connection list complete\n", node);
11176 * traverse from_nat_list of a node and calls ecm_db_connection_decelerate_and_defunct()
11179 void ecm_db_traverse_node_from_nat_connection_list_and_decelerate(struct ecm_db_node_instance *node)
11186 ci = ecm_db_node_from_nat_connections_get_and_ref_first(node);
11197 DEBUG_INFO("%p: Defuncting node's from nat connection list complete\n", node);
11202 * traverse to_nat_list of a node and calls ecm_db_connection_decelerate_and_defunct()
11205 void ecm_db_traverse_node_to_nat_connection_list_and_decelerate(struct ecm_db_node_instance *node)
11212 ci = ecm_db_node_to_nat_connections_get_and_ref_first(node);
11223 DEBUG_INFO("%p: Defuncting to node's nat connection list complete\n", node);
11265 DEBUG_ERROR("Failed to create ecm db node count file in debugfs\n");