Don't need to check if SO_OOBINLINE is defined.

Don't need to protect isipv6 conditional with INET6.
Fix leading indentation in 2 lines.
This commit is contained in:
Jeffrey Hsu 2002-10-30 08:32:19 +00:00
parent 5d3590aed7
commit 30613f5610
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106198
2 changed files with 16 additions and 26 deletions

View File

@ -525,8 +525,8 @@ tcp_input(m, off0)
/*
* Locate pcb for segment.
*/
INP_INFO_WLOCK(&tcbinfo);
headlocked = 1;
INP_INFO_WLOCK(&tcbinfo);
headlocked = 1;
findpcb:
/* IPFIREWALL_FORWARD section */
if (next_hop != NULL && isipv6 == 0) { /* IPv6 support is not yet */
@ -574,14 +574,11 @@ tcp_input(m, off0)
}
#endif
#ifdef FAST_IPSEC
#ifdef INET6
if (isipv6) {
if (inp != NULL && ipsec6_in_reject(m, inp)) {
goto drop;
}
} else
#endif /* INET6 */
if (inp != NULL && ipsec4_in_reject(m, inp)) {
} else if (inp != NULL && ipsec4_in_reject(m, inp)) {
goto drop;
}
#endif /*FAST_IPSEC*/
@ -2053,13 +2050,11 @@ tcp_input(m, off0)
* but if two URG's are pending at once, some out-of-band
* data may creep in... ick.
*/
if (th->th_urp <= (u_long)tlen
#ifdef SO_OOBINLINE
&& (so->so_options & SO_OOBINLINE) == 0
#endif
)
tcp_pulloutofband(so, th, m,
drop_hdrlen); /* hdr drop is delayed */
if (th->th_urp <= (u_long)tlen &&
!(so->so_options & SO_OOBINLINE)) {
/* hdr drop is delayed */
tcp_pulloutofband(so, th, m, drop_hdrlen);
}
} else {
/*
* If no out of band data is expected,

View File

@ -525,8 +525,8 @@ tcp_input(m, off0)
/*
* Locate pcb for segment.
*/
INP_INFO_WLOCK(&tcbinfo);
headlocked = 1;
INP_INFO_WLOCK(&tcbinfo);
headlocked = 1;
findpcb:
/* IPFIREWALL_FORWARD section */
if (next_hop != NULL && isipv6 == 0) { /* IPv6 support is not yet */
@ -574,14 +574,11 @@ tcp_input(m, off0)
}
#endif
#ifdef FAST_IPSEC
#ifdef INET6
if (isipv6) {
if (inp != NULL && ipsec6_in_reject(m, inp)) {
goto drop;
}
} else
#endif /* INET6 */
if (inp != NULL && ipsec4_in_reject(m, inp)) {
} else if (inp != NULL && ipsec4_in_reject(m, inp)) {
goto drop;
}
#endif /*FAST_IPSEC*/
@ -2053,13 +2050,11 @@ tcp_input(m, off0)
* but if two URG's are pending at once, some out-of-band
* data may creep in... ick.
*/
if (th->th_urp <= (u_long)tlen
#ifdef SO_OOBINLINE
&& (so->so_options & SO_OOBINLINE) == 0
#endif
)
tcp_pulloutofband(so, th, m,
drop_hdrlen); /* hdr drop is delayed */
if (th->th_urp <= (u_long)tlen &&
!(so->so_options & SO_OOBINLINE)) {
/* hdr drop is delayed */
tcp_pulloutofband(so, th, m, drop_hdrlen);
}
} else {
/*
* If no out of band data is expected,