s***@gmail.com
2007-04-18 18:11:48 UTC
Hi, hackers :)
In /usr/src/sys/netinet/tcp_output.c if function tcp_output() there are code:
error = ip_output(m, tp->t_inpcb->inp_options, NULL,
((so->so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0), 0,
tp->t_inpcb);
In this function there are only one call ip_output function, but struct route is null.
I think, that more optimaly is to keep the pointer to struct route in tcpcb.And not to search route every time, when tcp_output called.
In /usr/src/sys/netinet/tcp_output.c if function tcp_output() there are code:
error = ip_output(m, tp->t_inpcb->inp_options, NULL,
((so->so_options & SO_DONTROUTE) ? IP_ROUTETOIF : 0), 0,
tp->t_inpcb);
In this function there are only one call ip_output function, but struct route is null.
I think, that more optimaly is to keep the pointer to struct route in tcpcb.And not to search route every time, when tcp_output called.