patch-cache_h 612 B

1234567891011121314151617181920212223242526
  1. $OpenBSD: patch-cache_h,v 1.2 2011/12/08 13:04:38 sthen Exp $
  2. --- cache.h.orig Wed Nov 7 06:34:18 2007
  3. +++ cache.h Thu Dec 8 13:03:20 2011
  4. @@ -31,14 +31,21 @@
  5. struct sc_ent {
  6. RB_ENTRY(sc_ent) tlink;
  7. TAILQ_ENTRY(sc_ent) qlink;
  8. +#ifdef HAVE_PFSYNC_STATE
  9. + u_int64_t id;
  10. + u_int32_t creatorid;
  11. +#else
  12. struct pf_addr addr[2];
  13. +#endif
  14. double peak;
  15. double rate;
  16. time_t t;
  17. u_int32_t bytes;
  18. +#ifndef HAVE_PFSYNC_STATE
  19. u_int16_t port[2];
  20. u_int8_t af;
  21. u_int8_t proto;
  22. +#endif
  23. };
  24. int cache_init(int);