MCPcopy Create free account
hub / github.com/F-Stack/f-stack / pfsync_send_plus

Function pfsync_send_plus

freebsd/netpfil/pf/if_pfsync.c:2266–2282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2264}
2265
2266static void
2267pfsync_send_plus(void *plus, size_t pluslen)
2268{
2269 struct pfsync_softc *sc = V_pfsyncif;
2270 struct pfsync_bucket *b = &sc->sc_buckets[0];
2271
2272 PFSYNC_BUCKET_LOCK(b);
2273
2274 if (b->b_len + pluslen > sc->sc_ifp->if_mtu)
2275 pfsync_sendout(1, b->b_id);
2276
2277 b->b_plus = plus;
2278 b->b_len += (b->b_pluslen = pluslen);
2279
2280 pfsync_sendout(1, b->b_id);
2281 PFSYNC_BUCKET_UNLOCK(b);
2282}
2283
2284static void
2285pfsync_timeout(void *arg)

Callers 2

pfsync_clear_statesFunction · 0.85
pfsync_bulk_statusFunction · 0.85

Calls 1

pfsync_sendoutFunction · 0.85

Tested by

no test coverage detected