print rip_metric;
rip_metric = rip_metric + 5;
print rip_metric;
- bgp_community = - empty - ;
- print "nazdar";
- bgp_community = add(bgp_community, (1,2));
- print "cau";
- bgp_community = add(bgp_community, (2,3));
- bgp_community.add((4,5));
- print "community = ", bgp_community;
- bgp_community.delete((2,3));
- print "community = ", bgp_community;
- bgp_community.empty;
- print "community = ", bgp_community;
+# bgp_community = - empty - ;
+# print "nazdar";
+# bgp_community = add(bgp_community, (1,2));
+# print "cau";
+# bgp_community = add(bgp_community, (2,3));
+# bgp_community.add((4,5));
+# print "community = ", bgp_community;
+# bgp_community.delete((2,3));
+# print "community = ", bgp_community;
+# bgp_community.empty;
+# print "community = ", bgp_community;
print "done";
accept;
};
* Can be freely distributed and used under the terms of the GNU GPL.
*
FIXME: IpV6 support: packet size
- FIXME: IpV6 support: use right address for broadcasts
- FIXME: IpV6 support: receive "route using" blocks
+ FIXME: (nonurgent) IpV6 support: receive "route using" blocks
+ FIXME: (nonurgent) IpV6 support: generate "nexthop" blocks
+ next hops are only advisory, and they are pretty ugly in IpV6.
+ I suggest just forgetting about them.
FIXME (nonurgent): fold rip_connection into rip_interface?
packet->heading.unused = 0;
i = !!P_CF->authtype;
+#ifndef IPV6
maxi = ((P_CF->authtype == AT_MD5) ? PACKET_MD5_MAX : PACKET_MAX);
+#else
+ maxi = 5; /* We need to have at least reserve of one at end of packet */
+#endif
FIB_ITERATE_START(&P->rtable, &c->iter, z) {
struct rip_entry *e = (struct rip_entry *) z;
CHK_MAGIC;
TRACE(D_ROUTES, "block: %I tells me: %I/??? available, metric %d... ", whotoldme, network, metric );
if ((!metric) || (metric > P_CF->infinity)) {
+#ifdef IPV6 /* Someone is sedning us nexthop and we are ignoring it */
+ if (metric == 0xff)
+ { debug( "IpV6 nexthop ignored" ); return; }
+#endif
log( L_WARN "Got metric %d from %I", metric, whotoldme );
return;
}
if (new->addr->flags & IA_UNNUMBERED)
log( L_WARN "%s: rip is not defined over unnumbered links", P_NAME );
if (rif->multicast) {
+#ifndef IPV6
rif->sock->daddr = ipa_from_u32(0xe0000009);
rif->sock->saddr = ipa_from_u32(0xe0000009);
+#else
+ p_pton("FF02::9", &rif->sock->daddr);
+ p_pton("FF02::9", &rif->sock->saddr);
+#endif
} else
rif->sock->daddr = new->addr->brd;
}