mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Prog Doc: Complete several missing parameters
This commit is contained in:
parent
fff7498d6a
commit
8e433d6a52
@ -575,6 +575,7 @@ cf_lex_init_kh(void)
|
|||||||
/**
|
/**
|
||||||
* cf_lex_init - initialize the lexer
|
* cf_lex_init - initialize the lexer
|
||||||
* @is_cli: true if we're going to parse CLI command, false for configuration
|
* @is_cli: true if we're going to parse CLI command, false for configuration
|
||||||
|
* @c: configuration structure
|
||||||
*
|
*
|
||||||
* cf_lex_init() initializes the lexical analyzer and prepares it for
|
* cf_lex_init() initializes the lexical analyzer and prepares it for
|
||||||
* parsing of a new input.
|
* parsing of a new input.
|
||||||
|
2
lib/Doc
2
lib/Doc
@ -1,5 +1,5 @@
|
|||||||
H Library functions
|
H Library functions
|
||||||
S ip.c ipv4.c ipv6.c
|
S ip.c
|
||||||
S lists.c
|
S lists.c
|
||||||
S checksum.c bitops.c patmatch.c printf.c xmalloc.c tbf.c
|
S checksum.c bitops.c patmatch.c printf.c xmalloc.c tbf.c
|
||||||
D resource.sgml
|
D resource.sgml
|
||||||
|
@ -339,7 +339,7 @@ neigh_if_link(struct iface *i)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* neigh_ifa_update: notify neighbor cache about interface address add or remove event
|
* neigh_ifa_update: notify neighbor cache about interface address add or remove event
|
||||||
* @ifa: interface address in question
|
* @a: interface address in question
|
||||||
*
|
*
|
||||||
* Tell the neighbor cache that an address was added or removed.
|
* Tell the neighbor cache that an address was added or removed.
|
||||||
*
|
*
|
||||||
|
@ -148,6 +148,7 @@ void get_route_info(rte *e, byte *buf, ea_list *attrs)
|
|||||||
* get_attr - get attribute information
|
* get_attr - get attribute information
|
||||||
* @a: an extended attribute
|
* @a: an extended attribute
|
||||||
* @buf: buffer to be filled with attribute information
|
* @buf: buffer to be filled with attribute information
|
||||||
|
* @buflen: a length of the @buf parameter
|
||||||
*
|
*
|
||||||
* The get_attr() hook is called by the core to obtain a user friendly
|
* The get_attr() hook is called by the core to obtain a user friendly
|
||||||
* representation of an extended route attribute. It can either leave
|
* representation of an extended route attribute. It can either leave
|
||||||
|
@ -718,6 +718,7 @@ graceful_restart_init(void)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* graceful_restart_done - finalize graceful restart
|
* graceful_restart_done - finalize graceful restart
|
||||||
|
* @t: unused
|
||||||
*
|
*
|
||||||
* When there are no locks on graceful restart, the functions finalizes the
|
* When there are no locks on graceful restart, the functions finalizes the
|
||||||
* graceful restart recovery. Protocols postponing route export until the end of
|
* graceful restart recovery. Protocols postponing route export until the end of
|
||||||
|
@ -405,7 +405,7 @@ ea_find(ea_list *e, unsigned id)
|
|||||||
* for first occurrences of attributes with ID in specified interval from @id to
|
* for first occurrences of attributes with ID in specified interval from @id to
|
||||||
* (@id + @max - 1), returning pointers to found &eattr structures, storing its
|
* (@id + @max - 1), returning pointers to found &eattr structures, storing its
|
||||||
* walk state in @s for subsequent calls.
|
* walk state in @s for subsequent calls.
|
||||||
|
*
|
||||||
* The function ea_walk() is supposed to be called in a loop, with initially
|
* The function ea_walk() is supposed to be called in a loop, with initially
|
||||||
* zeroed walk state structure @s with filled the initial extended attribute
|
* zeroed walk state structure @s with filled the initial extended attribute
|
||||||
* list, returning one found attribute in each call or %NULL when no other
|
* list, returning one found attribute in each call or %NULL when no other
|
||||||
|
@ -717,16 +717,20 @@ rt_notify_merged(struct announce_hook *ah, net *net, rte *new_changed, rte *old_
|
|||||||
* @net: network in question
|
* @net: network in question
|
||||||
* @new: the new route to be announced
|
* @new: the new route to be announced
|
||||||
* @old: the previous route for the same network
|
* @old: the previous route for the same network
|
||||||
|
* @new_best: the new best route for the same network
|
||||||
|
* @old_best: the previous best route for the same network
|
||||||
|
* @before_old: The previous route before @old for the same network.
|
||||||
|
* If @before_old is NULL @old was the first.
|
||||||
*
|
*
|
||||||
* This function gets a routing table update and announces it
|
* This function gets a routing table update and announces it
|
||||||
* to all protocols that acccepts given type of route announcement
|
* to all protocols that acccepts given type of route announcement
|
||||||
* and are connected to the same table by their announcement hooks.
|
* and are connected to the same table by their announcement hooks.
|
||||||
*
|
*
|
||||||
* Route announcement of type RA_OPTIMAL si generated when optimal
|
* Route announcement of type %RA_OPTIMAL si generated when optimal
|
||||||
* route (in routing table @tab) changes. In that case @old stores the
|
* route (in routing table @tab) changes. In that case @old stores the
|
||||||
* old optimal route.
|
* old optimal route.
|
||||||
*
|
*
|
||||||
* Route announcement of type RA_ANY si generated when any route (in
|
* Route announcement of type %RA_ANY si generated when any route (in
|
||||||
* routing table @tab) changes In that case @old stores the old route
|
* routing table @tab) changes In that case @old stores the old route
|
||||||
* from the same protocol.
|
* from the same protocol.
|
||||||
*
|
*
|
||||||
@ -1616,6 +1620,7 @@ again:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* rt_prune_table - prune a routing table
|
* rt_prune_table - prune a routing table
|
||||||
|
* @tab: a routing table for pruning
|
||||||
*
|
*
|
||||||
* This function scans the routing table @tab and removes routes belonging to
|
* This function scans the routing table @tab and removes routes belonging to
|
||||||
* flushing protocols, discarded routes and also stale network entries, in a
|
* flushing protocols, discarded routes and also stale network entries, in a
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
S babel.c
|
S babel.c
|
||||||
S packet.c
|
S packets.c
|
||||||
|
@ -192,6 +192,7 @@ ospf_do_send_dbdes(struct ospf_proto *p, struct ospf_neighbor *n)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* ospf_send_dbdes - transmit database description packet
|
* ospf_send_dbdes - transmit database description packet
|
||||||
|
* @p: OSPF protocol instance
|
||||||
* @n: neighbor
|
* @n: neighbor
|
||||||
*
|
*
|
||||||
* Sending of a database description packet is described in 10.8 of RFC 2328.
|
* Sending of a database description packet is described in 10.8 of RFC 2328.
|
||||||
|
@ -554,12 +554,13 @@ lsa_validate_prefix(struct ospf_lsa_header *lsa, struct ospf_lsa_prefix *body)
|
|||||||
/**
|
/**
|
||||||
* lsa_validate - check whether given LSA is valid
|
* lsa_validate - check whether given LSA is valid
|
||||||
* @lsa: LSA header
|
* @lsa: LSA header
|
||||||
|
* @lsa_type: one of %LSA_T_xxx
|
||||||
|
* @ospf2: %true means OSPF version 2, %false means OSPF version 3
|
||||||
* @body: pointer to LSA body
|
* @body: pointer to LSA body
|
||||||
*
|
*
|
||||||
* Checks internal structure of given LSA body (minimal length,
|
* Checks internal structure of given LSA body (minimal length,
|
||||||
* consistency). Returns true if valid.
|
* consistency). Returns true if valid.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
lsa_validate(struct ospf_lsa_header *lsa, u32 lsa_type, int ospf2, void *body)
|
lsa_validate(struct ospf_lsa_header *lsa, u32 lsa_type, int ospf2, void *body)
|
||||||
{
|
{
|
||||||
|
@ -207,7 +207,7 @@ drop:
|
|||||||
/**
|
/**
|
||||||
* ospf_rx_hook
|
* ospf_rx_hook
|
||||||
* @sk: socket we received the packet.
|
* @sk: socket we received the packet.
|
||||||
* @size: size of the packet
|
* @len: size of the packet
|
||||||
*
|
*
|
||||||
* This is the entry point for messages from neighbors. Many checks (like
|
* This is the entry point for messages from neighbors. Many checks (like
|
||||||
* authentication, checksums, size) are done before the packet is passed to
|
* authentication, checksums, size) are done before the packet is passed to
|
||||||
|
@ -448,6 +448,7 @@ tm_format_reltime(char *x, struct tm *tm, bird_clock_t delta)
|
|||||||
/**
|
/**
|
||||||
* tm_format_datetime - convert date and time to textual representation
|
* tm_format_datetime - convert date and time to textual representation
|
||||||
* @x: destination buffer of size %TM_DATETIME_BUFFER_SIZE
|
* @x: destination buffer of size %TM_DATETIME_BUFFER_SIZE
|
||||||
|
* @fmt_spec: specification of resulting textual representation of the time
|
||||||
* @t: time
|
* @t: time
|
||||||
*
|
*
|
||||||
* This function formats the given relative time value @t to a textual
|
* This function formats the given relative time value @t to a textual
|
||||||
|
@ -89,6 +89,7 @@ static char *class_names[] = {
|
|||||||
/**
|
/**
|
||||||
* log_commit - commit a log message
|
* log_commit - commit a log message
|
||||||
* @class: message class information (%L_DEBUG to %L_BUG, see |lib/birdlib.h|)
|
* @class: message class information (%L_DEBUG to %L_BUG, see |lib/birdlib.h|)
|
||||||
|
* @buf: message to write
|
||||||
*
|
*
|
||||||
* This function writes a message prepared in the log buffer to the
|
* This function writes a message prepared in the log buffer to the
|
||||||
* log file (as specified in the configuration). The log buffer is
|
* log file (as specified in the configuration). The log buffer is
|
||||||
|
Loading…
Reference in New Issue
Block a user