diff options
| author | Dinesh Dutt <ddutt@cumulusnetworks.com> | 2013-08-26 03:40:23 +0000 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2013-11-07 18:15:43 -0800 | 
| commit | a0edf6740e8203abec1ee3efa344a417c16fec7b (patch) | |
| tree | 501efcc33069c129987ac1ec98dd0656ad67e278 /ospf6d/ospf6d.h | |
| parent | 3d35ca482babab4267570143b8327fc894df0ff8 (diff) | |
ospf6d: add SPF logs, statistics, and display of SPF parameters
Signed-off-by: Pradosh Mohapatra <pmohapat at cumulusnetworks.com>
Reviewed-by: Scott Feldman <sfeldma at cumulusnetworks.com>
[DL: adapted to rebase / readded randomly lost line]
[DL: killed timeval_subtract]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6d.h')
| -rw-r--r-- | ospf6d/ospf6d.h | 11 | 
1 files changed, 11 insertions, 0 deletions
diff --git a/ospf6d/ospf6d.h b/ospf6d/ospf6d.h index 13699d612e..0c86386a70 100644 --- a/ospf6d/ospf6d.h +++ b/ospf6d/ospf6d.h @@ -101,6 +101,17 @@ extern struct thread_master *master;        zlog_warn ("strftime error");                       \    } while (0) +#define threadtimer_string(now, t, buf, size)                         \ +  do {                                                                \ +    struct timeval result;                                            \ +    if (!t)                                                           \ +      snprintf(buf, size, "inactive");				      \ +    else {                                                            \ +      timersub(&t->u.sands, &now, &result);                           \ +      timerstring(&result, buf, size);                                \ +    }                                                                 \ +} while (0) +  /* for commands */  #define OSPF6_AREA_STR      "Area information\n"  #define OSPF6_AREA_ID_STR   "Area ID (as an IPv4 notation)\n"  | 
