id
stringlengths
4
63
text
stringlengths
153
8.81M
batadv_dat_dhcp_get_yiaddr(9)
NAME batadv_dat_dhcp_get_yiaddr - get yiaddr from a DHCP packet SYNOPSIS bool batadv_dat_dhcp_get_yiaddr (struct sk_buff *skb , __be32 *buf ); ARGUMENTS skb the DHCP packet to parse buf a buffer to store the yiaddr in DESCRIPTION Caller needs to ensure that the given skb is a valid DHCP packe...
batadv_dat_drop_broadcast_packet(9)
NAME batadv_dat_drop_broadcast_packet - check if an ARP request has to be dropped (because the node has already obtained the reply via DAT) or not SYNOPSIS bool batadv_dat_drop_broadcast_packet (struct batadv_priv *bat_priv , struct batadv_forw_packet *forw_packet ); ARGUMENTS bat_priv the bat priv with all the me...
batadv_dat_entry_add(9)
NAME batadv_dat_entry_add - add a new dat entry or update it if already exists SYNOPSIS void batadv_dat_entry_add (struct batadv_priv *bat_priv , __be32 ip , u8 *mac_addr , unsigned short vid ); ARGUMENTS bat_priv the bat priv with all the mesh interface information ip ipv4 to add/edit mac...
batadv_dat_entry_hash_find(9)
NAME batadv_dat_entry_hash_find - look for a given dat_entry in the local hash table SYNOPSIS struct batadv_dat_entry * batadv_dat_entry_hash_find (struct batadv_priv *bat_priv , __be32 ip , unsigned short vid ); ARGUMENTS bat_priv the bat priv with all the mesh interface information ip search key...
batadv_dat_entry_put(9)
NAME batadv_dat_entry_put - decrement the dat_entry refcounter and possibly release it SYNOPSIS void batadv_dat_entry_put (struct batadv_dat_entry *dat_entry ); ARGUMENTS dat_entry dat_entry to be free'd SEE ALSO Kernel file ./net/batman-adv/distributed-arp-table.c batadv_dat_start_timer(9), batadv_dat_entry_relea...
batadv_dat_entry_release(9)
NAME batadv_dat_entry_release - release dat_entry from lists and queue for free after rcu grace period SYNOPSIS void batadv_dat_entry_release (struct kref *ref ); ARGUMENTS ref kref pointer of the dat_entry SEE ALSO Kernel file ./net/batman-adv/distributed-arp-table.c batadv_dat_start_timer(9), bata...
batadv_dat_forward_data(9)
NAME batadv_dat_forward_data - copy and send payload to the selected candidates SYNOPSIS bool batadv_dat_forward_data (struct batadv_priv *bat_priv , struct sk_buff *skb , __be32 ip , unsigned short vid , int packet_subtype ); ARGUMENTS bat_priv the bat priv with all the mesh interface information skb ...
batadv_dat_free(9)
NAME batadv_dat_free - free the DAT internals SYNOPSIS void batadv_dat_free (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information SEE ALSO Kernel file ./net/batman-adv/distributed-arp-table.c batadv_dat_start_timer(9), batadv_dat_entry_release(9), batadv_dat...
batadv_dat_get_dhcp_chaddr(9)
NAME batadv_dat_get_dhcp_chaddr - get chaddr from a DHCP packet SYNOPSIS bool batadv_dat_get_dhcp_chaddr (struct sk_buff *skb , u8 *buf ); ARGUMENTS skb the DHCP packet to parse buf a buffer to store the chaddr in DESCRIPTION Caller needs to ensure that the given skb is a valid DHCP packet an...
batadv_dat_get_dhcp_message_type(9)
NAME batadv_dat_get_dhcp_message_type - get message type of a DHCP packet SYNOPSIS int batadv_dat_get_dhcp_message_type (struct sk_buff *skb ); ARGUMENTS skb the DHCP packet to parse DESCRIPTION Iterates over the DHCP options of the given DHCP packet to find a DHCP Message Type option and parse it. Cal...
batadv_dat_get_vid(9)
NAME batadv_dat_get_vid - extract the VLAN identifier from skb if any SYNOPSIS unsigned short batadv_dat_get_vid (struct sk_buff *skb , int *hdr_size ); ARGUMENTS skb the buffer containing the packet to extract the VID from hdr_size the size of the batman-adv header encapsulating the packet RETURN...
batadv_dat_hash_free(9)
NAME batadv_dat_hash_free - free the local DAT hash table SYNOPSIS void batadv_dat_hash_free (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information SEE ALSO Kernel file ./net/batman-adv/distributed-arp-table.c batadv_dat_start_timer(9), batadv_dat_entry_releas...
batadv_dat_inc_counter(9)
NAME batadv_dat_inc_counter - increment the correct DAT packet counter SYNOPSIS void batadv_dat_inc_counter (struct batadv_priv *bat_priv , u8 subtype ); ARGUMENTS bat_priv the bat priv with all the mesh interface information subtype the 4addr subtype of the packet to be counted DESCRIPTION Updates th...
batadv_dat_init(9)
NAME batadv_dat_init - initialise the DAT internals SYNOPSIS int batadv_dat_init (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information RETURN 0 in case of success, a negative error code otherwise SEE ALSO Kernel file ./net/batman-adv/distributed-arp-table.c b...
batadv_dat_init_orig_node_addr(9)
NAME batadv_dat_init_orig_node_addr - assign a DAT address to the orig_node SYNOPSIS void batadv_dat_init_orig_node_addr (struct batadv_orig_node *orig_node ); ARGUMENTS orig_node the node to assign the DAT address to SEE ALSO Kernel file ./net/batman-adv/distributed-arp-table.h batadv_dat_init_own_addr(9), batadv...
batadv_dat_init_own_addr(9)
NAME batadv_dat_init_own_addr - assign a DAT address to the node itself SYNOPSIS void batadv_dat_init_own_addr (struct batadv_priv *bat_priv , struct batadv_hard_iface *primary_if ); ARGUMENTS bat_priv the bat priv with all the mesh interface information primary_if a pointer to the primary interface SEE ...
batadv_dat_purge(9)
NAME batadv_dat_purge - periodic task that deletes old entries from the local DAT hash table SYNOPSIS void batadv_dat_purge (struct work_struct *work ); ARGUMENTS work kernel work struct SEE ALSO Kernel file ./net/batman-adv/distributed-arp-table.c batadv_dat_start_timer(9), batadv_dat_entry_release...
batadv_dat_put_dhcp(9)
NAME batadv_dat_put_dhcp - puts addresses from a DHCP packet into the DHT and DAT cache SYNOPSIS void batadv_dat_put_dhcp (struct batadv_priv *bat_priv , u8 *chaddr , __be32 yiaddr , u8 *hw_dst , __be32 ip_dst , unsigned short vid ); ARGUMENTS bat_priv the bat priv with all the mesh interface information c...
batadv_dat_select_candidates(9)
NAME batadv_dat_select_candidates - select the nodes which the DHT message has to be sent to SYNOPSIS struct batadv_dat_candidate * batadv_dat_select_candidates (struct batadv_priv *bat_priv , __be32 ip_dst , unsigned short vid ); ARGUMENTS bat_priv the bat priv with all the mesh interface information ip_d...
batadv_dat_snoop_incoming_arp_reply(9)
NAME batadv_dat_snoop_incoming_arp_reply - snoop the ARP reply and fill the local DAT storage only SYNOPSIS bool batadv_dat_snoop_incoming_arp_reply (struct batadv_priv *bat_priv , struct sk_buff *skb , int hdr_size ); ARGUMENTS bat_priv the bat priv with all the mesh interface information skb pack...
batadv_dat_snoop_incoming_arp_request(9)
NAME batadv_dat_snoop_incoming_arp_request - snoop the ARP request and try to answer using the local DAT storage SYNOPSIS bool batadv_dat_snoop_incoming_arp_request (struct batadv_priv *bat_priv , struct sk_buff *skb , int hdr_size ); ARGUMENTS bat_priv the bat priv with all the mesh interface information ...
batadv_dat_snoop_incoming_dhcp_ack(9)
NAME batadv_dat_snoop_incoming_dhcp_ack - snoop DHCPACK and fill DAT cache SYNOPSIS void batadv_dat_snoop_incoming_dhcp_ack (struct batadv_priv *bat_priv , struct sk_buff *skb , int hdr_size ); ARGUMENTS bat_priv the bat priv with all the mesh interface information skb the packet to snoop h...
batadv_dat_snoop_outgoing_arp_reply(9)
NAME batadv_dat_snoop_outgoing_arp_reply - snoop the ARP reply and fill the DHT SYNOPSIS void batadv_dat_snoop_outgoing_arp_reply (struct batadv_priv *bat_priv , struct sk_buff *skb ); ARGUMENTS bat_priv the bat priv with all the mesh interface information skb packet to check SEE ALSO Kernel file...
batadv_dat_snoop_outgoing_arp_request(9)
NAME batadv_dat_snoop_outgoing_arp_request - snoop the ARP request and try to answer using DAT SYNOPSIS bool batadv_dat_snoop_outgoing_arp_request (struct batadv_priv *bat_priv , struct sk_buff *skb ); ARGUMENTS bat_priv the bat priv with all the mesh interface information skb packet to check RETU...
batadv_dat_snoop_outgoing_dhcp_ack(9)
NAME batadv_dat_snoop_outgoing_dhcp_ack - snoop DHCPACK and fill DAT with it SYNOPSIS void batadv_dat_snoop_outgoing_dhcp_ack (struct batadv_priv *bat_priv , struct sk_buff *skb , __be16 proto , unsigned short vid ); ARGUMENTS bat_priv the bat priv with all the mesh interface information skb the pa...
batadv_dat_start_timer(9)
NAME batadv_dat_start_timer - initialise the DAT periodic worker SYNOPSIS void batadv_dat_start_timer (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information SEE ALSO Kernel file ./net/batman-adv/distributed-arp-table.c batadv_dat_entry_release(9), batadv_dat_ent...
batadv_dat_status_update(9)
NAME batadv_dat_status_update - update the dat tvlv container after dat setting change SYNOPSIS void batadv_dat_status_update (struct net_device *net_dev ); ARGUMENTS net_dev the mesh interface net device SEE ALSO Kernel file ./net/batman-adv/distributed-arp-table.c batadv_dat_start_timer(9), batadv_dat_entr...
batadv_dat_to_purge(9)
NAME batadv_dat_to_purge - check whether a dat_entry has to be purged or not SYNOPSIS bool batadv_dat_to_purge (struct batadv_dat_entry *dat_entry ); ARGUMENTS dat_entry the entry to check RETURN true if the entry has to be purged now, false otherwise. SEE ALSO Kernel file ./net/batman-adv/distributed-arp-t...
batadv_dat_tvlv_container_update(9)
NAME batadv_dat_tvlv_container_update - update the dat tvlv container after dat setting change SYNOPSIS void batadv_dat_tvlv_container_update (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information SEE ALSO Kernel file ./net/batman-adv/distributed-arp-table.c ba...
batadv_dat_tvlv_ogm_handler_v1(9)
NAME batadv_dat_tvlv_ogm_handler_v1 - process incoming dat tvlv container SYNOPSIS void batadv_dat_tvlv_ogm_handler_v1 (struct batadv_priv *bat_priv , struct batadv_orig_node *orig , u8 flags , void *tvlv_value , u16 tvlv_value_len ); ARGUMENTS bat_priv the bat priv with all the mesh interface information ...
batadv_dbg(9)
NAME batadv_dbg - Store debug output without rate limiting SYNOPSIS batadv_dbg (type , bat_priv , arg... ); ARGUMENTS type type of debug message bat_priv the bat priv with all the mesh interface information arg format string and variable arguments SEE ALSO Kernel file ./net/batman-a...
batadv_dbg_arp(9)
NAME batadv_dbg_arp - print a debug message containing all the ARP packet details SYNOPSIS void batadv_dbg_arp (struct batadv_priv *bat_priv , struct sk_buff *skb , int hdr_size , char *msg ); ARGUMENTS bat_priv the bat priv with all the mesh interface information skb ARP packet hdr_size ...
batadv_dbg_ratelimited(9)
NAME batadv_dbg_ratelimited - Store debug output with rate limiting SYNOPSIS batadv_dbg_ratelimited (type , bat_priv , arg... ); ARGUMENTS type type of debug message bat_priv the bat priv with all the mesh interface information arg format string and variable arguments SEE ALSO Kerne...
batadv_debug_log(9)
NAME batadv_debug_log - Add debug log entry SYNOPSIS int batadv_debug_log (struct batadv_priv *bat_priv , const char *fmt , ... ); ARGUMENTS bat_priv the bat priv with all the mesh interface information fmt format string ... variable arguments RETURN 0 on success or negative error ...
batadv_err(9)
NAME batadv_err - Store error in debug buffer and print it to kmsg buffer SYNOPSIS batadv_err (net_dev , fmt , arg... ); ARGUMENTS net_dev the mesh interface net device fmt format string arg variable arguments SEE ALSO Kernel file ./net/batman-adv/log.h enum batadv_dbg_level(9), _...
batadv_find_best_neighbor(9)
NAME batadv_find_best_neighbor - finds the best neighbor after purging SYNOPSIS struct batadv_neigh_node * batadv_find_best_neighbor (struct batadv_priv *bat_priv , struct batadv_orig_node *orig_node , struct batadv_hard_iface *if_outgoing ); ARGUMENTS bat_priv the bat priv with all the mesh interface information ...
batadv_find_router(9)
NAME batadv_find_router - find a suitable router for this originator SYNOPSIS struct batadv_neigh_node * batadv_find_router (struct batadv_priv *bat_priv , struct batadv_orig_node *orig_node , struct batadv_hard_iface *recv_if ); ARGUMENTS bat_priv the bat priv with all the mesh interface information orig_...
batadv_forw_bcast_packet(9)
NAME batadv_forw_bcast_packet - forward and queue a broadcast packet SYNOPSIS int batadv_forw_bcast_packet (struct batadv_priv *bat_priv , struct sk_buff *skb , unsigned long delay , bool own_packet ); ARGUMENTS bat_priv the bat priv with all the mesh interface information skb broadcast packet to a...
batadv_forw_bcast_packet_if(9)
NAME batadv_forw_bcast_packet_if - forward and queue a broadcast packet SYNOPSIS int batadv_forw_bcast_packet_if (struct batadv_priv *bat_priv , struct sk_buff *skb , unsigned long delay , bool own_packet , struct batadv_hard_iface *if_in , struct batadv_hard_iface *if_out ); ARGUMENTS bat_priv the bat priv with a...
batadv_forw_bcast_packet_to_list(9)
NAME batadv_forw_bcast_packet_to_list - queue broadcast packet for transmissions SYNOPSIS int batadv_forw_bcast_packet_to_list (struct batadv_priv *bat_priv , struct sk_buff *skb , unsigned long delay , bool own_packet , struct batadv_hard_iface *if_in , struct batadv_hard_iface *if_out ); ARGUMENTS bat_priv the b...
batadv_forw_packet_alloc(9)
NAME batadv_forw_packet_alloc - allocate a forwarding packet SYNOPSIS struct batadv_forw_packet * batadv_forw_packet_alloc (struct batadv_hard_iface *if_incoming , struct batadv_hard_iface *if_outgoing , atomic_t *queue_left , struct batadv_priv *bat_priv , struct sk_buff *skb ); ARGUMENTS if_incoming The (optional) ...
batadv_forw_packet_bcast_queue(9)
NAME batadv_forw_packet_bcast_queue - try to queue a broadcast packet SYNOPSIS void batadv_forw_packet_bcast_queue (struct batadv_priv *bat_priv , struct batadv_forw_packet *forw_packet , unsigned long send_time ); ARGUMENTS bat_priv the bat priv with all the mesh interface information forw_packet the forw...
batadv_forw_packet_bcasts_dec(9)
NAME batadv_forw_packet_bcasts_dec - decrement retransmission counter of a packet SYNOPSIS void batadv_forw_packet_bcasts_dec (struct batadv_forw_packet *forw_packet ); ARGUMENTS forw_packet the packet to decrease the counter for SEE ALSO Kernel file ./net/batman-adv/send.c batadv_send_skb_packet(9), batadv_send...
batadv_forw_packet_bcasts_left(9)
NAME batadv_forw_packet_bcasts_left - check if a retransmission is necessary SYNOPSIS bool batadv_forw_packet_bcasts_left (struct batadv_forw_packet *forw_packet ); ARGUMENTS forw_packet the forwarding packet to check DESCRIPTION Checks whether a given packet has any (re)transmissions left on the provided interface....
batadv_forw_packet_free(9)
NAME batadv_forw_packet_free - free a forwarding packet SYNOPSIS void batadv_forw_packet_free (struct batadv_forw_packet *forw_packet , bool dropped ); ARGUMENTS forw_packet The packet to free dropped whether the packet is freed because is dropped DESCRIPTION This frees a forwarding packet and releases a...
batadv_forw_packet_is_rebroadcast(9)
NAME batadv_forw_packet_is_rebroadcast - check packet for previous transmissions SYNOPSIS bool batadv_forw_packet_is_rebroadcast (struct batadv_forw_packet *forw_packet ); ARGUMENTS forw_packet the packet to check RETURN True if this packet was transmitted before, false otherwise. SEE ALSO Kernel file ./net/batma...
batadv_forw_packet_list_free(9)
NAME batadv_forw_packet_list_free - free a list of forward packets SYNOPSIS void batadv_forw_packet_list_free (struct hlist_head *head ); ARGUMENTS head a list of to be freed forw_packets DESCRIPTION This function cancels the scheduling of any packet in the provided list, waits for any possibly running packet...
batadv_forw_packet_list_steal(9)
NAME batadv_forw_packet_list_steal - claim a list of forward packets for free() SYNOPSIS void batadv_forw_packet_list_steal (struct hlist_head *forw_list , struct hlist_head *cleanup_list , const struct batadv_hard_iface *hard_iface ); ARGUMENTS forw_list the to be stolen forward packets cleanup_list ...
batadv_forw_packet_ogmv1_queue(9)
NAME batadv_forw_packet_ogmv1_queue - try to queue an OGMv1 packet SYNOPSIS void batadv_forw_packet_ogmv1_queue (struct batadv_priv *bat_priv , struct batadv_forw_packet *forw_packet , unsigned long send_time ); ARGUMENTS bat_priv the bat priv with all the mesh interface information forw_packet the forward...
batadv_forw_packet_queue(9)
NAME batadv_forw_packet_queue - try to queue a forwarding packet SYNOPSIS void batadv_forw_packet_queue (struct batadv_forw_packet *forw_packet , spinlock_t *lock , struct hlist_head *head , unsigned long send_time ); ARGUMENTS forw_packet the forwarding packet to queue lock a key to the store (e.g. fo...
batadv_forw_packet_steal(9)
NAME batadv_forw_packet_steal - claim a forw_packet for free() SYNOPSIS bool batadv_forw_packet_steal (struct batadv_forw_packet *forw_packet , spinlock_t *lock ); ARGUMENTS forw_packet the forwarding packet to steal lock a key to the store to steal from (e.g. forw_{bat,bcast}_list_lock) DESCRIPTION T...
batadv_forw_packet_was_stolen(9)
NAME batadv_forw_packet_was_stolen - check whether someone stole this packet SYNOPSIS bool batadv_forw_packet_was_stolen (struct batadv_forw_packet *forw_packet ); ARGUMENTS forw_packet the forwarding packet to check DESCRIPTION This function checks whether the given forwarding packet was claimed by someone else for...
batadv_frag_check_entry(9)
NAME batadv_frag_check_entry - check if a list of fragments has timed out SYNOPSIS bool batadv_frag_check_entry (struct batadv_frag_table_entry *frags_entry ); ARGUMENTS frags_entry table entry to check RETURN true if the frags entry has timed out, false otherwise. SEE ALSO Kernel file ./net/batman-adv/fragmentatio...
batadv_frag_clear_chain(9)
NAME batadv_frag_clear_chain - delete entries in the fragment buffer chain SYNOPSIS void batadv_frag_clear_chain (struct hlist_head *head , bool dropped ); ARGUMENTS head head of chain with entries. dropped whether the chain is cleared because all fragments are dropped DESCRIPTION Free fragments i...
batadv_frag_create(9)
NAME batadv_frag_create - create a fragment from skb SYNOPSIS struct sk_buff * batadv_frag_create (struct net_device *net_dev , struct sk_buff *skb , struct batadv_frag_packet *frag_head , unsigned int fragment_size ); ARGUMENTS net_dev outgoing device for fragment skb skb to create fragment from ...
batadv_frag_init_chain(9)
NAME batadv_frag_init_chain - check and prepare fragment chain for new fragment SYNOPSIS bool batadv_frag_init_chain (struct batadv_frag_table_entry *chain , u16 seqno ); ARGUMENTS chain chain in fragments table to init seqno sequence number of the received fragment DESCRIPTION Make chain ready f...
batadv_frag_insert_packet(9)
NAME batadv_frag_insert_packet - insert a fragment into a fragment chain SYNOPSIS bool batadv_frag_insert_packet (struct batadv_orig_node *orig_node , struct sk_buff *skb , struct hlist_head *chain_out ); ARGUMENTS orig_node originator that the fragment was received from skb skb to insert ch...
batadv_frag_merge_packets(9)
NAME batadv_frag_merge_packets - merge a chain of fragments SYNOPSIS struct sk_buff * batadv_frag_merge_packets (struct hlist_head *chain ); ARGUMENTS chain head of chain with fragments DESCRIPTION Expand the first skb in the chain and copy the content of the remaining skb's into the expanded one. After doing ...
batadv_frag_purge_orig(9)
NAME batadv_frag_purge_orig - free fragments associated to an orig SYNOPSIS void batadv_frag_purge_orig (struct batadv_orig_node *orig_node , bool (*check_cb)(struct batadv_frag_table_entry *) ); ARGUMENTS orig_node originator to free fragments from check_cb optional function to tell if an entry should b...
batadv_frag_send_packet(9)
NAME batadv_frag_send_packet - create up to 16 fragments from the passed skb SYNOPSIS int batadv_frag_send_packet (struct sk_buff *skb , struct batadv_orig_node *orig_node , struct batadv_neigh_node *neigh_node ); ARGUMENTS skb skb to create fragments from orig_node final destination of the created ...
batadv_frag_size_limit(9)
NAME batadv_frag_size_limit - maximum possible size of packet to be fragmented SYNOPSIS int batadv_frag_size_limit (void ); ARGUMENTS void no arguments RETURN the maximum size of payload that can be fragmented. SEE ALSO Kernel file ./net/batman-adv/fragmentation.c batadv_frag_clear_chain(9), batadv_frag_...
batadv_frag_skb_buffer(9)
NAME batadv_frag_skb_buffer - buffer fragment for later merge SYNOPSIS bool batadv_frag_skb_buffer (struct sk_buff **skb , struct batadv_orig_node *orig_node_src ); ARGUMENTS skb skb to buffer orig_node_src originator that the skb is received from DESCRIPTION Add fragment to buff...
batadv_frag_skb_fwd(9)
NAME batadv_frag_skb_fwd - forward fragments that would exceed MTU when merged SYNOPSIS bool batadv_frag_skb_fwd (struct sk_buff *skb , struct batadv_hard_iface *recv_if , struct batadv_orig_node *orig_node_src ); ARGUMENTS skb skb to forward recv_if interface that the skb is received on o...
batadv_get_real_netdev(9)
NAME batadv_get_real_netdev - check if the given net_device struct is a virtual interface on top of another 'real' interface SYNOPSIS struct net_device * batadv_get_real_netdev (struct net_device *net_device ); ARGUMENTS net_device the device to check RETURN the 'real' net device or the original net device and NULL...
batadv_get_vid(9)
NAME batadv_get_vid - extract the VLAN identifier from skb if any SYNOPSIS unsigned short batadv_get_vid (struct sk_buff *skb , size_t header_len ); ARGUMENTS skb the buffer containing the packet header_len length of the batman header preceding the ethernet header RETURN VID with the BATADV_VLAN_HAS...
batadv_get_vlan_from_info(9)
NAME batadv_get_vlan_from_info - Retrieve vlan from genl attributes SYNOPSIS struct batadv_meshif_vlan * batadv_get_vlan_from_info (struct batadv_priv *bat_priv , struct net *net , struct genl_info *info ); ARGUMENTS bat_priv the bat priv with all the mesh interface information net the applicable n...
batadv_getlink_net(9)
NAME batadv_getlink_net - return link net namespace (of use fallback) SYNOPSIS struct net * batadv_getlink_net (const struct net_device *netdev , struct net *fallback_net ); ARGUMENTS netdev net_device to check fallback_net return in case get_link_net is not available for netdev RETUR...
batadv_gw_check_client_stop(9)
NAME batadv_gw_check_client_stop - check if client mode has been switched off SYNOPSIS void batadv_gw_check_client_stop (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information DESCRIPTION This function assumes the caller has checked that the gw state *is actually c...
batadv_gw_check_election(9)
NAME batadv_gw_check_election - Elect orig node as best gateway when eligible SYNOPSIS void batadv_gw_check_election (struct batadv_priv *bat_priv , struct batadv_orig_node *orig_node ); ARGUMENTS bat_priv the bat priv with all the mesh interface information orig_node orig node which is to be checked SE...
batadv_gw_dhcp_recipient_get(9)
NAME batadv_gw_dhcp_recipient_get - check if a packet is a DHCP message SYNOPSIS enum batadv_dhcp_recipient batadv_gw_dhcp_recipient_get (struct sk_buff *skb , unsigned int *header_len , u8 *chaddr ); ARGUMENTS skb the packet to check header_len a pointer to the batman-adv header size chaddr ...
batadv_gw_dump(9)
NAME batadv_gw_dump - Dump gateways into a message SYNOPSIS int batadv_gw_dump (struct sk_buff *msg , struct netlink_callback *cb ); ARGUMENTS msg Netlink message to dump into cb Control block containing additional options RETURN Error code, or length of message SEE ALSO Kernel file ./net...
batadv_gw_election(9)
NAME batadv_gw_election - Elect the best gateway SYNOPSIS void batadv_gw_election (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information SEE ALSO Kernel file ./net/batman-adv/gateway_client.c batadv_gw_node_release(9), batadv_gw_get_selected_gw_node(9), batad...
batadv_gw_free(9)
NAME batadv_gw_free - free the gateway handling internals SYNOPSIS void batadv_gw_free (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information SEE ALSO Kernel file ./net/batman-adv/gateway_common.c batadv_gw_tvlv_container_update(9), batadv_gw_tvlv_ogm_handler_v1(9...
batadv_gw_get_selected_gw_node(9)
NAME batadv_gw_get_selected_gw_node - Get currently selected gateway SYNOPSIS struct batadv_gw_node * batadv_gw_get_selected_gw_node (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information RETURN selected gateway (with increased refcnt), NULL on errors SEE ALSO Ke...
batadv_gw_get_selected_orig(9)
NAME batadv_gw_get_selected_orig - Get originator of currently selected gateway SYNOPSIS struct batadv_orig_node * batadv_gw_get_selected_orig (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information RETURN orig_node of selected gateway (with increased refcnt), NULL...
batadv_gw_init(9)
NAME batadv_gw_init - initialise the gateway handling internals SYNOPSIS void batadv_gw_init (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information SEE ALSO Kernel file ./net/batman-adv/gateway_common.c batadv_gw_tvlv_container_update(9), batadv_gw_tvlv_ogm_handle...
batadv_gw_node_add(9)
NAME batadv_gw_node_add - add gateway node to list of available gateways SYNOPSIS void batadv_gw_node_add (struct batadv_priv *bat_priv , struct batadv_orig_node *orig_node , struct batadv_tvlv_gateway_data *gateway ); ARGUMENTS bat_priv the bat priv with all the mesh interface information orig_node orig...
batadv_gw_node_delete(9)
NAME batadv_gw_node_delete - Remove orig_node from gateway list SYNOPSIS void batadv_gw_node_delete (struct batadv_priv *bat_priv , struct batadv_orig_node *orig_node ); ARGUMENTS bat_priv the bat priv with all the mesh interface information orig_node orig node which is currently in process of being remo...
batadv_gw_node_free(9)
NAME batadv_gw_node_free - Free gateway information from mesh interface SYNOPSIS void batadv_gw_node_free (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information SEE ALSO Kernel file ./net/batman-adv/gateway_client.c batadv_gw_node_release(9), batadv_gw_get_sel...
batadv_gw_node_get(9)
NAME batadv_gw_node_get - retrieve gateway node from list of available gateways SYNOPSIS struct batadv_gw_node * batadv_gw_node_get (struct batadv_priv *bat_priv , struct batadv_orig_node *orig_node ); ARGUMENTS bat_priv the bat priv with all the mesh interface information orig_node originator announcing...
batadv_gw_node_put(9)
NAME batadv_gw_node_put - decrement the gw_node refcounter and possibly release it SYNOPSIS void batadv_gw_node_put (struct batadv_gw_node *gw_node ); ARGUMENTS gw_node gateway node to free SEE ALSO Kernel file ./net/batman-adv/gateway_client.h April 2026 ...
batadv_gw_node_release(9)
NAME batadv_gw_node_release - release gw_node from lists and queue for free after rcu grace period SYNOPSIS void batadv_gw_node_release (struct kref *ref ); ARGUMENTS ref kref pointer of the gw_node SEE ALSO Kernel file ./net/batman-adv/gateway_client.c batadv_gw_get_selected_gw_node(9), batadv_gw_get_sele...
batadv_gw_node_update(9)
NAME batadv_gw_node_update - update list of available gateways with changed bandwidth information SYNOPSIS void batadv_gw_node_update (struct batadv_priv *bat_priv , struct batadv_orig_node *orig_node , struct batadv_tvlv_gateway_data *gateway ); ARGUMENTS bat_priv the bat priv with all the mesh interface informat...
batadv_gw_out_of_range(9)
NAME batadv_gw_out_of_range - check if the dhcp request destination is the best gateway SYNOPSIS bool batadv_gw_out_of_range (struct batadv_priv *bat_priv , struct sk_buff *skb ); ARGUMENTS bat_priv the bat priv with all the mesh interface information skb the outgoing packet DESCRIPTION Check if ...
batadv_gw_reselect(9)
NAME batadv_gw_reselect - force a gateway reselection SYNOPSIS void batadv_gw_reselect (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information DESCRIPTION Set a flag to remind the GW component to perform a new gateway reselection. However this function does not ...
batadv_gw_tvlv_container_update(9)
NAME batadv_gw_tvlv_container_update - update the gw tvlv container after gateway setting change SYNOPSIS void batadv_gw_tvlv_container_update (struct batadv_priv *bat_priv ); ARGUMENTS bat_priv the bat priv with all the mesh interface information SEE ALSO Kernel file ./net/batman-adv/gateway_common.c batadv_gw_t...
batadv_gw_tvlv_ogm_handler_v1(9)
NAME batadv_gw_tvlv_ogm_handler_v1 - process incoming gateway tvlv container SYNOPSIS void batadv_gw_tvlv_ogm_handler_v1 (struct batadv_priv *bat_priv , struct batadv_orig_node *orig , u8 flags , void *tvlv_value , u16 tvlv_value_len ); ARGUMENTS bat_priv the bat priv with all the mesh interface information ...
batadv_handle_announce(9)
NAME batadv_handle_announce - check for ANNOUNCE frame SYNOPSIS bool batadv_handle_announce (struct batadv_priv *bat_priv , u8 *an_addr , u8 *backbone_addr , unsigned short vid ); ARGUMENTS bat_priv the bat priv with all the mesh interface information an_addr announcement mac address (ARP Sender HW add...
batadv_handle_claim(9)
NAME batadv_handle_claim - check for CLAIM frame SYNOPSIS bool batadv_handle_claim (struct batadv_priv *bat_priv , struct batadv_hard_iface *primary_if , const u8 *backbone_addr , const u8 *claim_addr , unsigned short vid ); ARGUMENTS bat_priv the bat priv with all the mesh interface information primary_if...
batadv_handle_request(9)
NAME batadv_handle_request - check for REQUEST frame SYNOPSIS bool batadv_handle_request (struct batadv_priv *bat_priv , struct batadv_hard_iface *primary_if , u8 *backbone_addr , struct ethhdr *ethhdr , unsigned short vid ); ARGUMENTS bat_priv the bat priv with all the mesh interface information primary_i...
batadv_handle_tt_response(9)
NAME batadv_handle_tt_response - process incoming tt reply SYNOPSIS void batadv_handle_tt_response (struct batadv_priv *bat_priv , struct batadv_tvlv_tt_data *tt_data , u8 *resp_src , u16 num_entries ); ARGUMENTS bat_priv the bat priv with all the mesh interface information tt_data tt data containing t...
batadv_handle_unclaim(9)
NAME batadv_handle_unclaim - check for UNCLAIM frame SYNOPSIS bool batadv_handle_unclaim (struct batadv_priv *bat_priv , struct batadv_hard_iface *primary_if , const u8 *backbone_addr , const u8 *claim_addr , unsigned short vid ); ARGUMENTS bat_priv the bat priv with all the mesh interface information prim...
batadv_hard_if_event_meshif(9)
NAME batadv_hard_if_event_meshif - Handle events for mesh interfaces SYNOPSIS int batadv_hard_if_event_meshif (unsigned long event , struct net_device *net_dev ); ARGUMENTS event NETDEV_* event to handle net_dev net_device which generated an event RETURN NOTIFY_* result SEE ALSO Kernel file ./...
batadv_hardif_cnt(9)
NAME batadv_hardif_cnt - get number of interfaces enslaved to mesh interface SYNOPSIS size_t batadv_hardif_cnt (struct net_device *mesh_iface ); ARGUMENTS mesh_iface mesh interface to check DESCRIPTION This function is only using RCU for locking - the result can therefore be off when another function is modifying t...
batadv_hardif_disable_interface(9)
NAME batadv_hardif_disable_interface - Remove hard interface from mesh interface SYNOPSIS void batadv_hardif_disable_interface (struct batadv_hard_iface *hard_iface ); ARGUMENTS hard_iface hard interface to be removed SEE ALSO Kernel file ./net/batman-adv/hard-interface.c batadv_hardif_release(9), batadv_hard...
batadv_hardif_enable_interface(9)
NAME batadv_hardif_enable_interface - Enslave hard interface to mesh interface SYNOPSIS int batadv_hardif_enable_interface (struct batadv_hard_iface *hard_iface , struct net_device *mesh_iface ); ARGUMENTS hard_iface hard interface to add to mesh interface mesh_iface netdev struct of the mesh interface RET...
batadv_hardif_get_by_netdev(9)
NAME batadv_hardif_get_by_netdev - Get hard interface object of a net_device SYNOPSIS struct batadv_hard_iface * batadv_hardif_get_by_netdev (const struct net_device *net_dev ); ARGUMENTS net_dev net_device to search for RETURN batadv_hard_iface of net_dev (with increased refcnt), NULL on errors SEE ALSO Kernel...
batadv_hardif_min_mtu(9)
NAME batadv_hardif_min_mtu - Calculate maximum MTU for mesh interface SYNOPSIS int batadv_hardif_min_mtu (struct net_device *mesh_iface ); ARGUMENTS mesh_iface netdev struct of the mesh interface RETURN MTU for the mesh-interface (limited by the minimal MTU of all active slave interfaces) SEE ALSO Kernel file ...
batadv_hardif_neigh_create(9)
NAME batadv_hardif_neigh_create - create a hardif neighbour node SYNOPSIS struct batadv_hardif_neigh_node * batadv_hardif_neigh_create (struct batadv_hard_iface *hard_iface , const u8 *neigh_addr , struct batadv_orig_node *orig_node ); ARGUMENTS hard_iface the interface this neighbour is connected to neigh_a...
batadv_hardif_neigh_dump(9)
NAME batadv_hardif_neigh_dump - Dump to netlink the neighbor infos for a specific outgoing interface SYNOPSIS int batadv_hardif_neigh_dump (struct sk_buff *msg , struct netlink_callback *cb ); ARGUMENTS msg message to dump into cb parameters for the dump RETURN 0 or error value SEE ALSO Ker...