Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Aug 2007 15:59:59 +0300
From:      "Ivo Vachkov" <ivo.vachkov@gmail.com>
To:        freebsd-net <freebsd-net@freebsd.org>
Subject:   Wrong function descriptio
Message-ID:  <f85d6aa70708220559y97e63fer823ed5f11f58e221@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hello all,

I find this:

 . . .

/*
 * Try to forward a packet based on the destination address.
 * This is a fast path optimized for the plain forwarding case.
 * If the packet is handled (and consumed) here then we return 1;
 * otherwise 0 is returned and the packet should be delivered
 * to ip_input for full processing.
 */
struct mbuf *
ip_fastforward(struct mbuf *m)

 . . .

in ip_fastfwd.c (FreeBSD CURRENT source tree).

I'd say this is probably true for the NetBSD, but i see that return
value is actually a pointer to struct mbut, not an integer.

Probably someone should update it with the right description of the
return value type and meaning.

/ipv



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f85d6aa70708220559y97e63fer823ed5f11f58e221>