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 > > void ip_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.