icd_nw_api Struct Reference
[Network module API]

#include <network_api.h>

List of all members.

Public Attributes

gchar * version
gpointer private
icd_nw_ip_down_fn ip_down
icd_nw_ip_up_fn ip_up
icd_nw_ip_addr_info_fn ip_addr_info
icd_nw_ip_stats_fn ip_stats
icd_nw_link_pre_down_fn link_pre_down
icd_nw_link_post_up_fn link_post_up
icd_nw_link_post_stats_fn link_post_stats
icd_nw_link_down_fn link_down
icd_nw_link_up_fn link_up
icd_nw_link_stats_fn link_stats
guint search_lifetime
guint search_interval
icd_nw_start_search_fn start_search
icd_nw_stop_search_fn stop_search
icd_nw_child_exit_fn child_exit
icd_nw_network_destruct_fn network_destruct
icd_nw_layer_renew_fn ip_renew
icd_nw_layer_renew_fn link_post_renew
icd_nw_layer_renew_fn link_renew


Detailed Description

The icd_nw_api defines the network connection functions implementable by the modules.

When connecting to the network ICd will call the '_up' functions one after another beginning from the bottom and moving upwards to the next non-NULL ones as long as the status of the callback is ICD_NW_SUCCESS. If any error or ICD_NW_RESTART is signalled through the callback, disconnection will start. With ICD_NW_RESTART the same connection will be retried after disconnection.

When disconnecting, the non-NULL '_down' functions will be called in the opposite order from top to bottom.


Member Data Documentation

ICd2 version this module is compiled against, set to ICD_NW_MODULE_VERSION

Referenced by icd_network_api_init_cb().

ip layer address acquisition; normally this is not provided by the module

Referenced by icd_iap_disconnect(), and icd_iap_up_callback().

ip layer address acquisition; normally this is not provided by the module

Referenced by icd_iap_module_next(), icd_iap_next_ip_up_module(), icd_network_api_init_cb(), and icd_nw_init().

ip address info

Referenced by icd_iap_get_ipinfo(), and icd_network_api_init_cb().

ip statistics

Referenced by icd_iap_get_ip_stats(), and icd_network_api_init_cb().

link layer deauthentication, if needed

Referenced by icd_iap_disconnect(), and icd_iap_up_callback().

link layer authentication, if needed

Referenced by icd_iap_module_next(), icd_iap_next_link_post_up_module(), icd_network_api_init_cb(), and icd_nw_init().

link layer authentication statistics

Referenced by icd_iap_get_link_post_stats(), and icd_network_api_init_cb().

bring down the link layer

Referenced by icd_iap_disconnect(), and icd_iap_up_callback().

link layer statistics

Referenced by icd_iap_get_link_stats(), and icd_network_api_init_cb().

Cache lifetime in seconds for a network

Referenced by icd_network_api_init_cb(), icd_nw_init(), icd_scan_cache_expire(), and icd_scan_cb().

Seconds to wait until a new scan is done; must be smaller than search_lifetime

Referenced by icd_network_api_init_cb(), icd_nw_init(), and icd_scan_cb().

stop (ongoing) search

Referenced by icd_network_api_init_cb(), and icd_nw_init().

child process exit

Referenced by icd_network_api_foreach_module_pid().

function to clean up after this module; no calls to any functions will be made after this

Referenced by icd_network_api_init_cb(), icd_network_api_unload_modules(), and icd_nw_init().

ip layer address renewal, if needed

Referenced by icd_iap_run_renew().

link layer authentication renewal, if needed

Referenced by icd_iap_run_renew().

link layer renewal, if needed

Referenced by icd_iap_run_renew().


The documentation for this struct was generated from the following files:

Generated on Thu Mar 11 09:04:50 2010 for ICd2 by  doxygen 1.5.6