pf_osfp.c (130613) | pf_osfp.c (145836) |
---|---|
1/* $FreeBSD: head/sys/contrib/pf/net/pf_osfp.c 130613 2004-06-16 23:24:02Z mlaier $ */ 2/* $OpenBSD: pf_osfp.c,v 1.9 2004/01/04 20:08:42 pvalchev Exp $ */ | 1/* $FreeBSD: head/sys/contrib/pf/net/pf_osfp.c 145836 2005-05-03 16:43:32Z mlaier $ */ 2/* $OpenBSD: pf_osfp.c,v 1.10 2004/04/09 19:30:41 frantzen Exp $ */ |
3 4/* 5 * Copyright (c) 2003 Mike Frantzen <frantzen@w4g.org> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * --- 239 unchanged lines hidden (view full) --- 250 do { 251 pf_osfp_entry_pl = pf_osfp_pl = NULL; 252 UMA_CREATE(pf_osfp_entry_pl, struct pf_osfp_entry, "pfospfen"); 253 UMA_CREATE(pf_osfp_pl, struct pf_os_fingerprint, "pfosfp"); 254 error = 0; 255 } while(0); 256#else 257 pool_init(&pf_osfp_entry_pl, sizeof(struct pf_osfp_entry), 0, 0, 0, | 3 4/* 5 * Copyright (c) 2003 Mike Frantzen <frantzen@w4g.org> 6 * 7 * Permission to use, copy, modify, and distribute this software for any 8 * purpose with or without fee is hereby granted, provided that the above 9 * copyright notice and this permission notice appear in all copies. 10 * --- 239 unchanged lines hidden (view full) --- 250 do { 251 pf_osfp_entry_pl = pf_osfp_pl = NULL; 252 UMA_CREATE(pf_osfp_entry_pl, struct pf_osfp_entry, "pfospfen"); 253 UMA_CREATE(pf_osfp_pl, struct pf_os_fingerprint, "pfosfp"); 254 error = 0; 255 } while(0); 256#else 257 pool_init(&pf_osfp_entry_pl, sizeof(struct pf_osfp_entry), 0, 0, 0, |
258 "pfosfpen", NULL); | 258 "pfosfpen", &pool_allocator_nointr); |
259 pool_init(&pf_osfp_pl, sizeof(struct pf_os_fingerprint), 0, 0, 0, | 259 pool_init(&pf_osfp_pl, sizeof(struct pf_os_fingerprint), 0, 0, 0, |
260 "pfosfp", NULL); | 260 "pfosfp", &pool_allocator_nointr); |
261#endif 262 SLIST_INIT(&pf_osfp_list); 263#ifdef __FreeBSD__ 264#ifdef _KERNEL 265 return (error); 266#else 267 return (0); 268#endif --- 296 unchanged lines hidden --- | 261#endif 262 SLIST_INIT(&pf_osfp_list); 263#ifdef __FreeBSD__ 264#ifdef _KERNEL 265 return (error); 266#else 267 return (0); 268#endif --- 296 unchanged lines hidden --- |