diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-07-22 13:07:08 -0700 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-07-22 13:07:08 -0700 |
| commit | c8ed14ddb63a0ecbab5835ce2bb044afbc15895d (patch) | |
| tree | 59ac029713ed5582789a3769a4bde20c88b2a6b9 /zebra/zebra_ptm.h | |
| parent | 28066f4bccdd5449908e97af4465b73202d7256f (diff) | |
ptm-integration.patch
Integrates Prescriptive Topology Module(ptm) into quagga.
If this module is enabled, link ups are notified only after the link is verified
as being connected to the neighbor specified. The neighbor specification and
checking is done by the ptm daemon.
<This is a recommit of this patch because it was changed in situ>
Diffstat (limited to 'zebra/zebra_ptm.h')
| -rw-r--r-- | zebra/zebra_ptm.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/zebra/zebra_ptm.h b/zebra/zebra_ptm.h index 85a0bdced4..e26edf0928 100644 --- a/zebra/zebra_ptm.h +++ b/zebra/zebra_ptm.h @@ -26,11 +26,31 @@ extern const char ZEBRA_PTM_SOCK_NAME[]; #define ZEBRA_PTM_MAX_SOCKBUF 3200 /* 25B *128 ports */ #define ZEBRA_PTM_SEND_MAX_SOCKBUF 512 -extern int ptm_enable; + +/* Zebra ptm context block */ +struct zebra_ptm_cb +{ + int ptm_sock; /* ptm file descriptor. */ + + struct buffer *wb; /* Buffer of data waiting to be written to ptm. */ + + struct thread *t_read; /* Thread for read */ + struct thread *t_write; /* Thread for write */ + struct thread *t_timer; /* Thread for timer */ + + char *out_data; + char *in_data; + int reconnect_time; + + int ptm_enable; + int pid; +}; void zebra_ptm_init (void); +void zebra_ptm_finish(void); int zebra_ptm_connect (struct thread *t); void zebra_ptm_write (struct vty *vty); +int zebra_ptm_get_enable_state(void); int zebra_ptm_bfd_dst_register (struct zserv *client, int sock, u_short length, int command); |
