Deleted Added
full compact
0a1
> /* $FreeBSD: head/sys/contrib/pf/net/pf_osfp.c 126261 2004-02-26 02:34:12Z mlaier $ */
39d39
<
43a44,46
> #if defined(__FreeBSD__)
> typedef uma_zone_t pool_t;
> #else
44a48
> #endif
57a62,65
> # if defined(__FreeBSD__)
> # define NTOHS(x) (x) = ntohs((u_int16_t)(x))
> # endif
>
109c117
< u_int8_t *optp;
---
> const u_int8_t *optp;
125c133
< optp = (caddr_t)tcp + sizeof(*tcp);
---
> optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp));
230a239,241
> #if defined(__FreeBSD__)
> int
> #else
231a243
> #endif
233a246,255
> #if defined(__FreeBSD__) && defined(_KERNEL)
> int error = ENOMEM;
>
> do {
> pf_osfp_entry_pl = pf_osfp_pl = NULL;
> UMA_CREATE(pf_osfp_entry_pl, struct pf_osfp_entry, "pfospfen");
> UMA_CREATE(pf_osfp_pl, struct pf_os_fingerprint, "pfosfp");
> error = 0;
> } while(0);
> #else
237a260
> #endif
238a262,268
> #if defined(__FreeBSD__)
> #if defined(_KERNEL)
> return (error);
> #else
> return (0);
> #endif
> #endif
240a271,279
> #if defined(__FreeBSD__) && (_KERNEL)
> void
> pf_osfp_cleanup(void)
> {
> UMA_DESTROY(pf_osfp_entry_pl);
> UMA_DESTROY(pf_osfp_pl);
> }
> #endif
>