1/* $FreeBSD: head/sys/contrib/pf/net/if_pfsync.c 147321 2005-06-12 16:46:20Z mlaier $ */ |
2/* $OpenBSD: if_pfsync.c,v 1.46 2005/02/20 15:58:38 mcbride Exp $ */ 3 4/* 5 * Copyright (c) 2002 Michael Shalayeff 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 205 unchanged lines hidden (view full) --- 215 ifp->if_ioctl = pfsyncioctl; 216 ifp->if_output = pfsyncoutput; 217 ifp->if_start = pfsyncstart; 218 ifp->if_snd.ifq_maxlen = ifqmaxlen; 219 ifp->if_hdrlen = PFSYNC_HDRLEN; 220 ifp->if_baudrate = IF_Mbps(100); 221 ifp->if_softc = sc; 222 pfsync_setmtu(sc, MCLBYTES); |
223 callout_init(&sc->sc_tmo, NET_CALLOUT_MPSAFE); 224 callout_init(&sc->sc_bulk_tmo, NET_CALLOUT_MPSAFE); 225 callout_init(&sc->sc_bulkfail_tmo, NET_CALLOUT_MPSAFE); 226 callout_init(&sc->sc_send_tmo, NET_CALLOUT_MPSAFE); |
227 mtx_init(&sc->sc_ifq.ifq_mtx, ifp->if_xname, "pfsync send queue", 228 MTX_DEF); 229 if_attach(ifp); 230 231 LIST_INSERT_HEAD(&pfsync_list, sc, sc_next); 232#if NBPFILTER > 0 233 bpfattach(ifp, DLT_PFSYNC, PFSYNC_HDRLEN); 234#endif --- 1631 unchanged lines hidden --- |