2004-10-11 Paul Jakma <paul@dishone.st>

* if.h: mtu's should be unsigned.
	* routemap.{c,h}: const char updates
	* smux.{c,h}: ditto
This commit is contained in:
paul 2004-10-11 11:28:44 +00:00
parent 6c83567192
commit c9eca01b29
6 changed files with 18 additions and 14 deletions

View file

@ -3,6 +3,9 @@
* thread.c: (funcname_thread_add_timer) * thread.c: (funcname_thread_add_timer)
(funcname_thread_add_timer_msec) Fix mistakes from last change. (funcname_thread_add_timer_msec) Fix mistakes from last change.
Pointed out by Liu Xin in [quagga-dev 1609]. Pointed out by Liu Xin in [quagga-dev 1609].
* if.h: mtu's should be unsigned.
* routemap.{c,h}: const char updates
* smux.{c,h}: ditto
2004-10-10 Paul Jakma <paul@dishone.st> 2004-10-10 Paul Jakma <paul@dishone.st>

View file

@ -94,8 +94,8 @@ struct interface
int metric; int metric;
/* Interface MTU. */ /* Interface MTU. */
int mtu; /* IPv4 MTU */ unsigned int mtu; /* IPv4 MTU */
int mtu6; /* IPv6 MTU - probably, but not neccessarily same as mtu */ unsigned int mtu6; /* IPv6 MTU - probably, but not neccessarily same as mtu */
/* Hardware address. */ /* Hardware address. */
#ifdef HAVE_SOCKADDR_DL #ifdef HAVE_SOCKADDR_DL

View file

@ -489,7 +489,7 @@ route_map_rule_delete (struct route_map_rule_list *list,
/* strcmp wrapper function which don't crush even argument is NULL. */ /* strcmp wrapper function which don't crush even argument is NULL. */
int int
rulecmp (char *dst, char *src) rulecmp (const char *dst, const char *src)
{ {
if (dst == NULL) if (dst == NULL)
{ {
@ -511,7 +511,7 @@ rulecmp (char *dst, char *src)
/* Add match statement to route map. */ /* Add match statement to route map. */
int int
route_map_add_match (struct route_map_index *index, const char *match_name, route_map_add_match (struct route_map_index *index, const char *match_name,
char *match_arg) const char *match_arg)
{ {
struct route_map_rule *rule; struct route_map_rule *rule;
struct route_map_rule *next; struct route_map_rule *next;
@ -570,7 +570,7 @@ route_map_add_match (struct route_map_index *index, const char *match_name,
/* Delete specified route match rule. */ /* Delete specified route match rule. */
int int
route_map_delete_match (struct route_map_index *index, const char *match_name, route_map_delete_match (struct route_map_index *index, const char *match_name,
char *match_arg) const char *match_arg)
{ {
struct route_map_rule *rule; struct route_map_rule *rule;
struct route_map_rule_cmd *cmd; struct route_map_rule_cmd *cmd;
@ -597,7 +597,7 @@ route_map_delete_match (struct route_map_index *index, const char *match_name,
/* Add route-map set statement to the route map. */ /* Add route-map set statement to the route map. */
int int
route_map_add_set (struct route_map_index *index, const char *set_name, route_map_add_set (struct route_map_index *index, const char *set_name,
char *set_arg) const char *set_arg)
{ {
struct route_map_rule *rule; struct route_map_rule *rule;
struct route_map_rule *next; struct route_map_rule *next;
@ -656,7 +656,7 @@ route_map_add_set (struct route_map_index *index, const char *set_name,
/* Delete route map set rule. */ /* Delete route map set rule. */
int int
route_map_delete_set (struct route_map_index *index, const char *set_name, route_map_delete_set (struct route_map_index *index, const char *set_name,
char *set_arg) const char *set_arg)
{ {
struct route_map_rule *rule; struct route_map_rule *rule;
struct route_map_rule_cmd *cmd; struct route_map_rule_cmd *cmd;

View file

@ -81,7 +81,7 @@ struct route_map_rule_cmd
route_map_object_t, void *); route_map_object_t, void *);
/* Compile argument and return result as void *. */ /* Compile argument and return result as void *. */
void *(*func_compile)(char *); void *(*func_compile)(const char *);
/* Free allocated value by func_compile (). */ /* Free allocated value by func_compile (). */
void (*func_free)(void *); void (*func_free)(void *);
@ -156,24 +156,24 @@ void route_map_init_vty ();
int int
route_map_add_match (struct route_map_index *index, route_map_add_match (struct route_map_index *index,
const char *match_name, const char *match_name,
char *match_arg); const char *match_arg);
/* Delete specified route match rule. */ /* Delete specified route match rule. */
int int
route_map_delete_match (struct route_map_index *index, route_map_delete_match (struct route_map_index *index,
const char *match_name, const char *match_name,
char *match_arg); const char *match_arg);
/* Add route-map set statement to the route map. */ /* Add route-map set statement to the route map. */
int int
route_map_add_set (struct route_map_index *index, route_map_add_set (struct route_map_index *index,
const char *set_name, const char *set_name,
char *set_arg); const char *set_arg);
/* Delete route map set rule. */ /* Delete route map set rule. */
int int
route_map_delete_set (struct route_map_index *index, const char *set_name, route_map_delete_set (struct route_map_index *index, const char *set_name,
char *set_arg); const char *set_arg);
/* Install rule command to the match list. */ /* Install rule command to the match list. */
void void

View file

@ -1445,7 +1445,8 @@ config_write_smux (struct vty *vty)
/* Register subtree to smux master tree. */ /* Register subtree to smux master tree. */
void void
smux_register_mib (char *descr, struct variable *var, size_t width, int num, smux_register_mib (const char *descr, struct variable *var,
size_t width, int num,
oid name[], size_t namelen) oid name[], size_t namelen)
{ {
struct subtree *tree; struct subtree *tree;

View file

@ -146,7 +146,7 @@ struct trap_object
void smux_init (struct thread_master *tm, oid [], size_t); void smux_init (struct thread_master *tm, oid [], size_t);
void smux_start (void); void smux_start (void);
void smux_register_mib(char *, struct variable *, size_t, int, oid [], size_t); void smux_register_mib(const char *, struct variable *, size_t, int, oid [], size_t);
int smux_header_generic (struct variable *, oid [], size_t *, int, size_t *, int smux_header_generic (struct variable *, oid [], size_t *, int, size_t *,
WriteMethod **); WriteMethod **);
int smux_trap (oid *, size_t, oid *, size_t, struct trap_object *, size_t, unsigned int, u_char); int smux_trap (oid *, size_t, oid *, size_t, struct trap_object *, size_t, unsigned int, u_char);