summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_var.h
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2011-04-30 11:18:16 +0000
committertuexen <tuexen@FreeBSD.org>2011-04-30 11:18:16 +0000
commitad795d2c5d13224f9b5bfefa5f6896ff66db16a0 (patch)
tree019e1b80ac539c2f5a7eeb9a859cfe17f3d979f9 /sys/netinet/sctp_var.h
parent734a66b389401392d78d4cb81b576bbbf9de9a29 (diff)
downloadFreeBSD-src-ad795d2c5d13224f9b5bfefa5f6896ff66db16a0.zip
FreeBSD-src-ad795d2c5d13224f9b5bfefa5f6896ff66db16a0.tar.gz
Improve compilation of SCTP code without INET support.
Some bugs where fixed while doing this: * ASCONF-ACK messages might use wrong port number when using IPv6. * Checking for additional addresses takes the correct address into account and also does not do more comparisons than necessary. This patch is based on one received from bz@ who was sponsored by The FreeBSD Foundation and iXsystems. MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctp_var.h')
-rw-r--r--sys/netinet/sctp_var.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/netinet/sctp_var.h b/sys/netinet/sctp_var.h
index 3ab04c0..c972a16 100644
--- a/sys/netinet/sctp_var.h
+++ b/sys/netinet/sctp_var.h
@@ -300,8 +300,15 @@ int sctp_disconnect(struct socket *so);
void sctp_ctlinput __P((int, struct sockaddr *, void *));
int sctp_ctloutput __P((struct socket *, struct sockopt *));
+
+#ifdef INET
void sctp_input_with_port __P((struct mbuf *, int, uint16_t));
+
+#endif
+#ifdef INET
void sctp_input __P((struct mbuf *, int));
+
+#endif
void sctp_pathmtu_adjustment __P((struct sctp_inpcb *, struct sctp_tcb *, struct sctp_nets *, uint16_t));
void sctp_drain __P((void));
void sctp_init __P((void));
OpenPOWER on IntegriCloud