diff options
author | julian <julian@FreeBSD.org> | 2008-08-20 01:05:56 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2008-08-20 01:05:56 +0000 |
commit | 0592958505e144fa8a1cdff63ecc2e605ac5e407 (patch) | |
tree | 1a19e6226789a77aca65db762eda0fb078daa7e5 /sys/netinet/tcp_syncache.c | |
parent | e808f0ec7052dba8316366ce3f9ae8f001c34252 (diff) | |
download | FreeBSD-src-0592958505e144fa8a1cdff63ecc2e605ac5e407.zip FreeBSD-src-0592958505e144fa8a1cdff63ecc2e605ac5e407.tar.gz |
A bunch of formatting fixes brough to light by, or created by the Vimage commit
a few days ago.
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index fd580d2..df2a682 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -286,7 +286,8 @@ syncache_init(void) &V_tcp_syncache.hashsize); TUNABLE_INT_FETCH("net.inet.tcp.syncache.bucketlimit", &V_tcp_syncache.bucket_limit); - if (!powerof2(V_tcp_syncache.hashsize) || V_tcp_syncache.hashsize == 0) { + if (!powerof2(V_tcp_syncache.hashsize) || + V_tcp_syncache.hashsize == 0) { printf("WARNING: syncache hash size is not a power of 2.\n"); V_tcp_syncache.hashsize = TCP_SYNCACHE_HASHSIZE; } @@ -1569,7 +1570,8 @@ syncookie_generate(struct syncache_head *sch, struct syncache *sc, off = sc->sc_iss & 0x7; /* iss was randomized before */ /* Maximum segment size calculation. */ - pmss = max( min(sc->sc_peer_mss, tcp_mssopt(&sc->sc_inc)), V_tcp_minmss); + pmss = + max( min(sc->sc_peer_mss, tcp_mssopt(&sc->sc_inc)), V_tcp_minmss); for (mss = sizeof(tcp_sc_msstab) / sizeof(int) - 1; mss > 0; mss--) if (tcp_sc_msstab[mss] <= pmss) break; |