BSD

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • ip_forward() function

    1 answers - 505 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Where is the code for the ip_forward() function in 3.8?
    I found the prototype in: /usr/src/sys/netinet/ip_var.h
    voidip_forward(struct *mbuf, int);
    but no function definition.
    I also did a grep -sR "ip_forward" /usr/src
    and all I found was the function being called several times
    from /usr/src/sys/netinet/ip_input.c, but no actual code showing
    how the function works. I'm probably looking for this in the
    wrong way, any ideas? Thanks,
    -Matt-
  • No.1 | | 568 bytes | |

    Matthew Closson wrote:
    Where is the code for the ip_forward() function in 3.8?

    I found the prototype in: /usr/src/sys/netinet/ip_var.h

    voidip_forward(struct *mbuf, int);

    but no function definition.

    I also did a grep -sR "ip_forward" /usr/src
    and all I found was the function being called several times
    from /usr/src/sys/netinet/ip_input.c, but no actual code showing
    how the function works. I'm probably looking for this in the
    wrong way, any ideas? Thanks,

    Look again, it is in sys/netinet/ip_input.c.

Re: ip_forward() function


max 4000 letters.
Your nickname that display:
In order to stop the spam: 7 + 6 =
QUESTION ON "BSD"

EMSDN.COM