[Midnightbsd-cvs] src [10573] trunk/lib/libc/net/sourcefilter.c: use LLINDEX
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Jun 7 21:45:33 EDT 2018
Revision: 10573
http://svnweb.midnightbsd.org/src/?rev=10573
Author: laffer1
Date: 2018-06-07 21:45:32 -0400 (Thu, 07 Jun 2018)
Log Message:
-----------
use LLINDEX
Modified Paths:
--------------
trunk/lib/libc/net/sourcefilter.c
Modified: trunk/lib/libc/net/sourcefilter.c
===================================================================
--- trunk/lib/libc/net/sourcefilter.c 2018-06-08 01:44:35 UTC (rev 10572)
+++ trunk/lib/libc/net/sourcefilter.c 2018-06-08 01:45:32 UTC (rev 10573)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
/*-
* Copyright (c) 2007-2009 Bruce Simpson.
* All rights reserved.
@@ -25,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__MBSDID("$MidnightBSD$");
+__FBSDID("$FreeBSD: stable/10/lib/libc/net/sourcefilter.c 269480 2014-08-03 18:03:00Z pfg $");
#include "namespace.h"
@@ -120,7 +121,7 @@
psu = (sockunion_t *)ifa->ifa_addr;
if (psu && psu->ss.ss_family == AF_LINK &&
strcmp(ifa->ifa_name, ifname) == 0) {
- ifindex = psu->sdl.sdl_index;
+ ifindex = LLINDEX(&psu->sdl);
break;
}
}
@@ -337,7 +338,8 @@
{
struct __msfilterreq msfr;
sockunion_t *psu;
- int err, level, nsrcs, optlen, optname;
+ socklen_t optlen;
+ int err, level, nsrcs, optname;
if (interface == 0 || group == NULL || numsrc == NULL ||
fmode == NULL) {
More information about the Midnightbsd-cvs
mailing list