svn commit: r214036 - projects/ofed/head/sys/ofed/include/linux
Jeff Roberson
jeff at FreeBSD.org
Mon Oct 18 22:19:48 UTC 2010
Author: jeff
Date: Mon Oct 18 22:19:47 2010
New Revision: 214036
URL: http://svn.freebsd.org/changeset/base/214036
Log:
- zero sin_zero and fill in sin_family before calling ifa_ifwithaddr.
Sponsored by: Isilon Systems, iX Systems, and Panasas.
Modified:
projects/ofed/head/sys/ofed/include/linux/inetdevice.h
Modified: projects/ofed/head/sys/ofed/include/linux/inetdevice.h
==============================================================================
--- projects/ofed/head/sys/ofed/include/linux/inetdevice.h Mon Oct 18 22:18:42 2010 (r214035)
+++ projects/ofed/head/sys/ofed/include/linux/inetdevice.h Mon Oct 18 22:19:47 2010 (r214036)
@@ -39,9 +39,11 @@ ip_dev_find(struct net *net, uint32_t ad
struct ifnet *ifp;
ifp = NULL;
+ memset(&sin, 0, sizeof(sin));
sin.sin_addr.s_addr = addr;
sin.sin_port = 0;
sin.sin_len = sizeof(sin);
+ sin.sin_family = AF_INET;
ifa = ifa_ifwithaddr((struct sockaddr *)&sin);
if (ifa) {
ifp = ifa->ifa_ifp;
More information about the svn-src-projects
mailing list