|
|
@ -68,11 +68,9 @@ void ast_free_ha(struct ast_ha *ha)
|
|
|
|
/* Copy HA structure */
|
|
|
|
/* Copy HA structure */
|
|
|
|
static void ast_copy_ha(struct ast_ha *from, struct ast_ha *to)
|
|
|
|
static void ast_copy_ha(struct ast_ha *from, struct ast_ha *to)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
memcpy(&to->netaddr, &from->netaddr, sizeof(from->netaddr));
|
|
|
|
memcpy(&to->netaddr, &from->netaddr, sizeof(from->netaddr));
|
|
|
|
memcpy(&to->netmask, &from->netmask, sizeof(from->netmask));
|
|
|
|
memcpy(&to->netmask, &from->netmask, sizeof(from->netmask));
|
|
|
|
to->sense = from->sense;
|
|
|
|
to->sense = from->sense;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Create duplicate of ha structure */
|
|
|
|
/* Create duplicate of ha structure */
|
|
|
@ -109,7 +107,6 @@ struct ast_ha *ast_duplicate_ha_list(struct ast_ha *original)
|
|
|
|
return (ret); /* Return start of list */
|
|
|
|
return (ret); /* Return start of list */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path)
|
|
|
|
struct ast_ha *ast_append_ha(char *sense, char *stuff, struct ast_ha *path)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
struct ast_ha *ha = malloc(sizeof(struct ast_ha));
|
|
|
|
struct ast_ha *ha = malloc(sizeof(struct ast_ha));
|
|
|
|