[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipfilter
Subject:    IP Filter + Sun Ultra.
From:       Darren Reed <avalon () coombs ! anu ! edu ! au>
Date:       1996-06-03 15:45:10
[Download RAW message or body]


At last attempt, those testing ip filter on ultras still reported a
panic when doing "ipf -F a".  Someone mentioned that the problem was
that copyin/copyout weren't being used, so I fixed the code to use
copyin but not copyout.  Here's another attempt to make it happier
on ultras.  Please let me know if this does or doesn't make any
different.

Thanks,
Darren

------- ip_sfil.c -------
*** /tmp/da0008n	Thu Jan  1 10:00:00 1970
--- ip_sfil.c   Tue Jun  4 01:44:02 1996
***************
*** 137,144 ****
  caddr_t data;
  {
	struct frentry *f, **fp;
	int flags = *(int *)data, flushed = 0, set = fr_active;
  
	bzero((char *)frcache, sizeof(frcache[0]) * 2);
  
	if (flags & FR_INACTIVE)
--- 137,145 ----
  caddr_t data;
  {
	struct frentry *f, **fp;
	int flags, flushed = 0, set = fr_active;
  
	IRCOPY(data, (caddr_t)&flags, sizeof(flags));
	bzero((char *)frcache, sizeof(frcache[0]) * 2);
  
	if (flags & FR_INACTIVE)
***************
*** 168,174 ****
		}
	}
  
	*(int *)data = flushed;
  }
  #endif /* IPFILTER_LOG */
  
--- 169,175 ----
		}
	}
  
	IWCOPY((caddr_t)&flushed, data, sizeof(flushed));
  }
  #endif /* IPFILTER_LOG */
  


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic