* [PATCH 1/3] sctp: use transport to guess overhead value of packet
@ 2010-07-02 8:17 Shan Wei
0 siblings, 0 replies; only message in thread
From: Shan Wei @ 2010-07-02 8:17 UTC (permalink / raw)
To: linux-sctp
Although the assoc is null, we can use af_specific of transport
to point to header size of IPv4 or IPv6.
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
net/sctp/output.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/sctp/output.c b/net/sctp/output.c
index a646681..48177d3 100644
--- a/net/sctp/output.c
+++ b/net/sctp/output.c
@@ -127,7 +127,7 @@ struct sctp_packet *sctp_packet_init(struct sctp_packet *packet,
struct sctp_sock *sp = sctp_sk(asoc->base.sk);
overhead = sp->pf->af->net_header_len;
} else {
- overhead = sizeof(struct ipv6hdr);
+ overhead = transport->af_specific->net_header_len;
}
overhead += sizeof(struct sctphdr);
packet->overhead = overhead;
--
1.7.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-07-02 8:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-02 8:17 [PATCH 1/3] sctp: use transport to guess overhead value of packet Shan Wei
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.