X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ospfd%2Fospf_vty.h;h=79aabe7b4ea4397b718b9e6240dbcba276ce779f;hb=c52e2ecf95a9be318912caacc0851d9307e679f7;hp=ba7b24ed95282d5dcfe80810e29e8a83415c2e74;hpb=84a98309def99b23c86de42ea8228d9191b65772;p=mirror_frr.git diff --git a/ospfd/ospf_vty.h b/ospfd/ospf_vty.h index ba7b24ed9..79aabe7b4 100644 --- a/ospfd/ospf_vty.h +++ b/ospfd/ospf_vty.h @@ -22,38 +22,36 @@ #define _QUAGGA_OSPF_VTY_H /* Macros. */ -#define VTY_GET_OSPF_AREA_ID(V,F,STR) \ -{ \ - int retv; \ - retv = str2area_id ((STR), &(V), &(F)); \ - if (retv < 0) \ - { \ - vty_out (vty, "%% Invalid OSPF area ID\n"); \ - return CMD_WARNING; \ - } \ -} +#define VTY_GET_OSPF_AREA_ID(V, F, STR) \ + { \ + int retv; \ + retv = str2area_id((STR), &(V), &(F)); \ + if (retv < 0) { \ + vty_out(vty, "%% Invalid OSPF area ID\n"); \ + return CMD_WARNING; \ + } \ + } -#define VTY_GET_OSPF_AREA_ID_NO_BB(NAME,V,F,STR) \ -{ \ - int retv; \ - retv = str2area_id ((STR), &(V), &(F)); \ - if (retv < 0) \ - { \ - vty_out (vty, "%% Invalid OSPF area ID\n"); \ - return CMD_WARNING; \ - } \ - if (OSPF_IS_AREA_ID_BACKBONE ((V))) \ - { \ - vty_out (vty, "%% You can't configure %s to backbone\n", \ - NAME); \ - } \ -} +#define VTY_GET_OSPF_AREA_ID_NO_BB(NAME, V, F, STR) \ + { \ + int retv; \ + retv = str2area_id((STR), &(V), &(F)); \ + if (retv < 0) { \ + vty_out(vty, "%% Invalid OSPF area ID\n"); \ + return CMD_WARNING; \ + } \ + if (OSPF_IS_AREA_ID_BACKBONE((V))) { \ + vty_out(vty, \ + "%% You can't configure %s to backbone\n", \ + NAME); \ + return CMD_WARNING; \ + } \ + } /* Prototypes. */ -extern void ospf_vty_init (void); -extern void ospf_vty_show_init (void); -extern void ospf_vty_clear_init (void); -extern int str2area_id (const char *, struct in_addr *, int *); -extern void area_id2str (char *, int, struct in_addr *, int); +extern void ospf_vty_init(void); +extern void ospf_vty_show_init(void); +extern void ospf_vty_clear_init(void); +extern int str2area_id(const char *, struct in_addr *, int *); #endif /* _QUAGGA_OSPF_VTY_H */