tcp_syncache.h (5d045651013e47d409be94a0ac6d8f3c73549b82) tcp_syncache.h (f6dfe47a145263dc5eb67fa4789925ab708709bc)
1/*-
2 * Copyright (c) 1982, 1986, 1993, 1994, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 82 unchanged lines hidden (view full) ---

91#define SCF_SIGNATURE 0x20 /* send MD5 digests */
92#define SCF_SACK 0x80 /* send SACK option */
93#define SCF_ECN 0x100 /* send ECN setup packet */
94
95#define SYNCOOKIE_SECRET_SIZE 8 /* dwords */
96#define SYNCOOKIE_LIFETIME 16 /* seconds */
97
98struct syncache_head {
1/*-
2 * Copyright (c) 1982, 1986, 1993, 1994, 1995
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 82 unchanged lines hidden (view full) ---

91#define SCF_SIGNATURE 0x20 /* send MD5 digests */
92#define SCF_SACK 0x80 /* send SACK option */
93#define SCF_ECN 0x100 /* send ECN setup packet */
94
95#define SYNCOOKIE_SECRET_SIZE 8 /* dwords */
96#define SYNCOOKIE_LIFETIME 16 /* seconds */
97
98struct syncache_head {
99 struct vnet *sch_vnet;
99 struct mtx sch_mtx;
100 TAILQ_HEAD(sch_head, syncache) sch_bucket;
101 struct callout sch_timer;
102 int sch_nextc;
103 u_int sch_length;
104 u_int sch_oddeven;
105 u_int32_t sch_secbits_odd[SYNCOOKIE_SECRET_SIZE];
106 u_int32_t sch_secbits_even[SYNCOOKIE_SECRET_SIZE];

--- 17 unchanged lines hidden ---
100 struct mtx sch_mtx;
101 TAILQ_HEAD(sch_head, syncache) sch_bucket;
102 struct callout sch_timer;
103 int sch_nextc;
104 u_int sch_length;
105 u_int sch_oddeven;
106 u_int32_t sch_secbits_odd[SYNCOOKIE_SECRET_SIZE];
107 u_int32_t sch_secbits_even[SYNCOOKIE_SECRET_SIZE];

--- 17 unchanged lines hidden ---