Date: Tue, 9 Jun 2009 04:39:47 +0000 (UTC) From: Kip Macy <kmacy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r193805 - user/kmacy/releng_7_2_fcs/sys/netinet Message-ID: <200906090439.n594dlHi055811@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kmacy Date: Tue Jun 9 04:39:47 2009 New Revision: 193805 URL: http://svn.freebsd.org/changeset/base/193805 Log: randomize flowid Modified: user/kmacy/releng_7_2_fcs/sys/netinet/in_pcb.c Modified: user/kmacy/releng_7_2_fcs/sys/netinet/in_pcb.c ============================================================================== --- user/kmacy/releng_7_2_fcs/sys/netinet/in_pcb.c Tue Jun 9 04:17:36 2009 (r193804) +++ user/kmacy/releng_7_2_fcs/sys/netinet/in_pcb.c Tue Jun 9 04:39:47 2009 (r193805) @@ -208,7 +208,7 @@ in_pcballoc(struct socket *so, struct in inp->inp_socket = so; inp->inp_cred = crhold(so->so_cred); inp->inp_inc.inc_fibnum = so->so_fibnum; - inp->inp_flowid = flowid++; + inp->inp_flowid = arc4random(); #ifdef MAC error = mac_inpcb_init(inp, M_NOWAIT); if (error != 0)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906090439.n594dlHi055811>