diff options
author | bz <bz@FreeBSD.org> | 2014-05-23 20:15:01 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2014-05-23 20:15:01 +0000 |
commit | c4e312930b918b5d4577c63d90ac12c4848f87b0 (patch) | |
tree | 9401746f10b6e0ec90c09eb5a050d296f38714a0 /sys/netinet/tcp_input.c | |
parent | 2ccda87acabbb02f574bc3d56994076404bc689b (diff) | |
download | FreeBSD-src-c4e312930b918b5d4577c63d90ac12c4848f87b0.zip FreeBSD-src-c4e312930b918b5d4577c63d90ac12c4848f87b0.tar.gz |
Move the tcp_fields_to_host() and tcp_fields_to_net() (inline)
functions to the tcp_var.h header file in order to avoid further
duplication with upcoming commits.
Reviewed by: np
MFC after: 2 weeks
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index f9a751c..f1cefc2 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -455,27 +455,7 @@ cc_post_recovery(struct tcpcb *tp, struct tcphdr *th) tp->t_bytes_acked = 0; } -static inline void -tcp_fields_to_host(struct tcphdr *th) -{ - - th->th_seq = ntohl(th->th_seq); - th->th_ack = ntohl(th->th_ack); - th->th_win = ntohs(th->th_win); - th->th_urp = ntohs(th->th_urp); -} - #ifdef TCP_SIGNATURE -static inline void -tcp_fields_to_net(struct tcphdr *th) -{ - - th->th_seq = htonl(th->th_seq); - th->th_ack = htonl(th->th_ack); - th->th_win = htons(th->th_win); - th->th_urp = htons(th->th_urp); -} - static inline int tcp_signature_verify_input(struct mbuf *m, int off0, int tlen, int optlen, struct tcpopt *to, struct tcphdr *th, u_int tcpbflag) |