Lines Matching defs:peer
68 static void print_peer(const struct pfsync_state_peer *peer, uint8_t, FILE*);
245 print_peer(const struct pfsync_state_peer* peer, uint8_t proto, FILE* f)
248 if (peer->state < TCP_NSTATES)
249 fprintf(f, "state %s", tcpstates[peer->state]);
251 if (peer->seqdiff != 0)
253 peer->seqlo, peer->seqhi, peer->seqdiff);
256 peer->seqlo, peer->seqhi);
258 if (peer->mss != 0)
260 peer->max_win, peer->mss, peer->wscale);
262 fprintf(f, " max_win %" PRIu16 " wscale %" PRIu8, peer->max_win,
263 peer->wscale);
268 if (peer->state < PFUDPS_NSTATES)
269 fprintf(f, "state %s", mystates[peer->state]);
271 fprintf(f, " state %" PRIu8, peer->state);
274 if (peer->state < PFOTHERS_NSTATES)
275 fprintf(f, " state %s", mystates[peer->state]);
279 if (peer->scrub.scrub_flag == PFSYNC_SCRUB_FLAG_VALID) {
281 peer->scrub.pfss_flags, peer->scrub.pfss_ttl, peer->scrub.pfss_ts_mod);