Revision 11cb6202 proto/bgp/bgp.c

View differences:

proto/bgp/bgp.c
76 76
static void bgp_initiate(struct bgp_proto *p);
77 77
static void bgp_setup_listen_sk(void);
78 78

  
79

  
79 80
static void
80 81
bgp_close(struct bgp_proto *p UNUSED)
81 82
{
......
611 612
    cf_error("Local AS number must be set");
612 613
  if (!c->remote_as)
613 614
    cf_error("Neighbor must be configured");
615
  if (!bgp_as4_support && (c->local_as > 0xFFFF))
616
    cf_error("Local AS number out of range");
617
  if (!bgp_as4_support && (c->remote_as > 0xFFFF))
618
    cf_error("Neighbor AS number out of range");
614 619
}
615 620

  
616 621
static void

Also available in: Unified diff