int
ip_pton(char *a, ip_addr *o)
{
- int i,j;
+ int i;
unsigned long int l;
u32 ia = 0;
byte *e = p + path->length;
byte *end = buf + size - 8;
int sp = 1;
- int l, type, isset, as;
+ int l, isset;
while (p < e)
{
if_update(struct iface *new)
{
struct iface *i;
- struct ifa *a, *b;
unsigned c;
WALK_LIST(i, iface_list)
void
if_end_update(void)
{
- struct iface *i, j;
+ struct iface *i;
struct ifa *a, *b;
if (!config->router_id)
}
break;
default:
- error:
bug("Invalid state transition for %s from %s/%s to */%s", p->name, c_states[cs], p_states[ops], p_states[ps]);
}
p->proto_state = ps;
void
rt_show(struct rt_show_data *d)
{
- struct rtable_config *tc;
net *n;
if (d->pxlen == 256)
struct bgp_bucket *buck;
int remains = BGP_MAX_PACKET_LENGTH - BGP_HEADER_LENGTH - 4;
byte *w;
- ip_addr ip;
int wd_size = 0;
int r_size = 0;
int a_size = 0;
static void
bgp_rx_notification(struct bgp_conn *conn, byte *pkt, int len)
{
- unsigned arg;
-
if (len < 21)
{
bgp_error(conn, 1, 2, pkt+16, 2);
struct rtmsg r;
char buf[128];
} r;
- struct nlmsghdr *reply;
DBG("nl_send_route(%I/%d,new=%d)\n", net->n.prefix, net->n.pxlen, new);
int
sk_open(sock *s)
{
- int fd, e;
+ int fd;
sockaddr sa;
int one = 1;
int type = s->type;
static void
krt_prune(struct krt_proto *p)
{
- struct proto *pp = &p->p;
struct rtable *t = p->p.table;
- struct fib_node *f;
KRT_TRACE(p, D_EVENTS, "Pruning table %s", t->name);
FIB_WALK(&t->fib, f)
krt_got_route_async(struct krt_proto *p, rte *e, int new)
{
net *net = e->net;
- rte *old = net->routes;
int src = e->u.krt.src;
switch (src)