> RCS file: /cvsroot/open-beos/net_kit/source/server/ipv4/ipv4.c,v
> retrieving revision 1.42
> retrieving revision 1.43
> diff -u -d -r1.42 -r1.43
> --- ipv4.c 13 May 2002 08:37:34 -0000 1.42
> +++ ipv4.c 18 May 2002 21:19:00 -0000 1.43
> @@ -777,7 +777,7 @@
>
> ipstat.ips_delivered++;
> if (proto[ip->ip_p] && proto[ip->ip_p]->pr_input) {
> - return proto[ip->ip_p]->pr_input(m, hlen);
> + return; /* proto[ip->ip_p]->pr_input(m, hlen);*/
> } else {
> printf("proto[%d] = %p\n", ip->ip_p, proto[ip->ip_p]);
> goto bad;
>
> Unless I'm mistaken (possible) then failing to call the next levels
> input
> function will stop the packet in it's tracks as dead as a dodo. not
> qhat we
> want! After all, that's why we waste the effort finding out if the
> input
> function is valid.
>
> You've done this in a few places. :(
You will notice that the function is declared void. Explain to me why
you are returning a value from a function that is declared void?
-Nathan
--
Fortune Cookie Says:
Your lucky number is 3552664958674928. Watch for it everywhere.