Module knet_bindings::knet_bindings [−][src]
Structs
for passing to handle_compress
Compressions types returned from get_compress_list
for passing to handle_crypto_set_config
Crypto info returned from get_crypto_list
a handle into the knet library, returned from handle_new
Flags passed into handle_new
The ID of a host known to knet.
Current status of a host. remote & reachable are current not used
Flags passed into link_set_config
Link stats
Link status (includes a LinkStats)
A knet logging message returned down the log_sender channel set in handle_new
Transport info returned from get_transport_list
Enums
Type of ACL
What the ACL should check
Tell handle_clear_stats whether to cleat all stats or just handle stats
Return value from packet filter
Link Policies for host_set_policy
Logging levels
Whether to allow or disallow clear-text traffic when crypto is enabled with handle_crypto_rx_clear_traffic
Subsystems known to the knet logger
Transport types supported in knet
Functions
Return a list of compression options
Get a list of valid crypto options
Add a data FD to knet. if datafd is 0 then knet will allocate one for you.
Clear statistics
Set up packet compression
Enable or disable clear-text traffic when crypto is enabled
Configure cryptographic seetings for packets being transmitted
Tell knet which crypto settings to use
Enable access control lists
Enable the packet filter. pass ‘None’ as the callback to disable.
Enable callback when the onwire version for a node changes
Enable notification of MTU changes
Enable notifications of socket state changes, set callback to ‘None’ to disable
Finish with knet, frees the handle returned by handle_new
Returns the channel associated with data fd
Returns the data FD associated with a channel
Get the defrag buffer parameters. Returns (min_defrag_bufs, max_defrag_bufs, shrink_threshold, usage_samples, usage_samples_timespan, reclaim_policy)
Get the onsure version for a node
Return statistics for this knet handle
Get timer resolution
Get the reconnect interval.
Initialise the knet library, returns a handle for use with the other API calls
Get the current MTU
Get frequency that PMTUd will check for MTU changes. value in milliseconds
Set the interface MTU (this should not be necessary)
Set frequency that PMTUd will check for MTU changes. value in milliseconds
Remove a datafd from knet
Configure the defrag buffer parameters - applies to all hosts
Set the onsire version for this node
Set timer resolution
Set the reconnect interval.
Starts traffic moving. You must call this before knet will do anything.
Add a new host ID
Enable callbacks when the status of a host changes
Return a list of host IDs known to this handle
Return the ID of a host given its name
Retrieve the name of a host given its ID
Return the current link policy for a node
Return the current status of a host
Remove a Host ID
Set the name of a host
Set the policy for this host, this only makes sense if multiple links between hosts are configured
Add an ACL to a link, adds the ACL to the end of the list.
Clear out all ACLs from this host/link
Clear a link configuration.
Enable callbacks when a link status changes
Return a link’s configuration
Get the ‘enabled’ status for a link
Get a list of links for this host
Get the ping timers for a link
Get the pong count for a link
Get the link priority
Get the status (and stats) of a link
Insert an ACL anywhere in the ACL list for this host/link
Remove an ACL for this host/link
Configure a link to a host ID. dst_addr may be None for a dynamic link.
Enable/disable a link (you still need to call handle_setfwd for traffic to flow
Set the ping timers for a link
Set the pong count for a link
Set the link priority (only useful with multiple links to a node)
Get the current logging level
Get the name of a logging level
Get the ID of a logging level, given its name
Get the logging subsystem ID given its name
Get the logging subsystem name given its ID
Set the current logging level
Receive messages from knet
Send messages knet
Send messages to knet and wait till they have gone
Type Definitions
Callback called when packets arrive/are sent handle_enable_filter
Stats for the knet handle
Called when a host status changes, see host_enable_status_change_notify
Called when a link status changes, see link_enable_status_change_notify
Called when the onwire version number for a node changes, see handle_enable_onwire_ver_notify
Callback called when PMTU changes, see handle_enable_pmtud_notify
Callback from handle_enable_sock_notify