diff options
author | Guillaume Subiron <maethor@subiron.org> | 2016-03-15 10:31:21 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2016-03-15 10:35:17 +0100 |
commit | 1252cf40a83ed91e0ee30cc5f206ce9372c640d8 (patch) | |
tree | a7f0d4ebe8f9675891658e459696e767330e9128 /slirp/tcp_output.c | |
parent | 9dfbf250d2a57adea15e42eed44ae35cb32d7597 (diff) |
slirp: Reindent after refactoring
No code change.
Signed-off-by: Guillaume Subiron <maethor@subiron.org>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'slirp/tcp_output.c')
-rw-r--r-- | slirp/tcp_output.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/slirp/tcp_output.c b/slirp/tcp_output.c index 32201fbc41..eec8902466 100644 --- a/slirp/tcp_output.c +++ b/slirp/tcp_output.c @@ -452,21 +452,20 @@ send: switch (so->so_ffamily) { case AF_INET: - m->m_data += sizeof(struct tcpiphdr) - sizeof(struct tcphdr) - - sizeof(struct ip); - m->m_len -= sizeof(struct tcpiphdr) - sizeof(struct tcphdr) - - sizeof(struct ip); - ip = mtod(m, struct ip *); - - ip->ip_len = m->m_len; - ip->ip_dst = tcpiph_save.ti_dst; - ip->ip_src = tcpiph_save.ti_src; - ip->ip_p = tcpiph_save.ti_pr; - - ip->ip_ttl = IPDEFTTL; - ip->ip_tos = so->so_iptos; - - error = ip_output(so, m); + m->m_data += sizeof(struct tcpiphdr) - sizeof(struct tcphdr) + - sizeof(struct ip); + m->m_len -= sizeof(struct tcpiphdr) - sizeof(struct tcphdr) + - sizeof(struct ip); + ip = mtod(m, struct ip *); + + ip->ip_len = m->m_len; + ip->ip_dst = tcpiph_save.ti_dst; + ip->ip_src = tcpiph_save.ti_src; + ip->ip_p = tcpiph_save.ti_pr; + + ip->ip_ttl = IPDEFTTL; + ip->ip_tos = so->so_iptos; + error = ip_output(so, m); break; default: |