Re: connecting to 6bone problem
On Mon, Jul 31, 2000 at 02:57:00AM +0200, Bernd Eckenfels wrote:
> I have to check this, but it is most likely a problem in route with the
> default argument, try "2000::/2" instead.
to follow up to myself, this is fixed in the recent net-tools (1.57).
Attached is a patch wich should solve that, but it is better if you use
simply the workaround i described above.
BTW: since I now have a IPv6 System you can expect net-tools to get a bit
more IPv6 friendly :)
Greetings
Bernd
Index: inet6_sr.c
===================================================================
RCS file: /cvs/net-tools/lib/inet6_sr.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -r1.6 -r1.7
67,71c67,69
< if ((cp = strchr(target, '/'))) {
< prefix_len = atol(cp + 1);
< if ((prefix_len < 0) || (prefix_len > 128))
< usage();
< *cp = 0;
---
> if (!strcmp(target, "default")) {
> prefix_len = 0;
> memset(&sa6, 0, sizeof(sa6));
73c71,83
< prefix_len = 128;
---
> if ((cp = strchr(target, '/'))) {
> prefix_len = atol(cp + 1);
> if ((prefix_len < 0) || (prefix_len > 128))
> usage();
> *cp = 0;
> } else {
> prefix_len = 128;
> }
> if (inet6_aftype.input(1, target, (struct sockaddr *) &sa6) < 0
> && inet6_aftype.input(0, target, (struct sockaddr *) &sa6) < 0) {
> inet6_aftype.herror(target);
> return (1);
> }
79,82d88
< if (inet6_aftype.input(1, target, (struct sockaddr *) &sa6) < 0) {
< inet6_aftype.herror(target);
< return (1);
< }
Reply to: