aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@fh-muenster.de>2017-09-27 15:13:49 +0200
committerMichael Tuexen <tuexen@fh-muenster.de>2017-09-27 15:13:49 +0200
commite13b2bdba9ef5df5f2a4f1695d7bf64c6ce9ca11 (patch)
tree77ff5412f01245833d41bf65730cee3e88564c5f
parentbca5443a5ec2a0cede24517aa7b52b3fbe7bb631 (diff)
downloadusrsctp-e13b2bdba9ef5df5f2a4f1695d7bf64c6ce9ca11.tar.gz
Sync with sctp-idata.
-rwxr-xr-xusrsctplib/netinet/sctp_asconf.c35
-rwxr-xr-xusrsctplib/netinet/sctp_asconf.h5
2 files changed, 2 insertions, 38 deletions
diff --git a/usrsctplib/netinet/sctp_asconf.c b/usrsctplib/netinet/sctp_asconf.c
index 02348106..5bd2105b 100755
--- a/usrsctplib/netinet/sctp_asconf.c
+++ b/usrsctplib/netinet/sctp_asconf.c
@@ -32,7 +32,7 @@
#ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.c 321204 2017-07-19 14:28:58Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.c 324056 2017-09-27 13:05:23Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -2341,39 +2341,6 @@ sctp_set_primary_ip_address_sa(struct sctp_tcb *stcb, struct sockaddr *sa)
return (0);
}
-void
-sctp_set_primary_ip_address(struct sctp_ifa *ifa)
-{
- struct sctp_inpcb *inp;
-
- /* go through all our PCB's */
- LIST_FOREACH(inp, &SCTP_BASE_INFO(listhead), sctp_list) {
- struct sctp_tcb *stcb;
-
- /* process for all associations for this endpoint */
- LIST_FOREACH(stcb, &inp->sctp_asoc_list, sctp_tcblist) {
- /* queue an ASCONF:SET_PRIM_ADDR to be sent */
- if (!sctp_asconf_queue_add(stcb, ifa,
- SCTP_SET_PRIM_ADDR)) {
- /* set primary queuing succeeded */
- SCTPDBG(SCTP_DEBUG_ASCONF1, "set_primary_ip_address: queued on stcb=%p, ",
- (void *)stcb);
- SCTPDBG_ADDR(SCTP_DEBUG_ASCONF1, &ifa->address.sa);
- if ((SCTP_GET_STATE(&stcb->asoc) == SCTP_STATE_OPEN) ||
- (SCTP_GET_STATE(&stcb->asoc) == SCTP_STATE_SHUTDOWN_RECEIVED)) {
-#ifdef SCTP_TIMER_BASED_ASCONF
- sctp_timer_start(SCTP_TIMER_TYPE_ASCONF,
- stcb->sctp_ep, stcb,
- stcb->asoc.primary_destination);
-#else
- sctp_send_asconf(stcb, NULL, SCTP_ADDR_NOT_LOCKED);
-#endif
- }
- }
- } /* for each stcb */
- } /* for each inp */
-}
-
int
sctp_is_addr_pending(struct sctp_tcb *stcb, struct sctp_ifa *sctp_ifa)
{
diff --git a/usrsctplib/netinet/sctp_asconf.h b/usrsctplib/netinet/sctp_asconf.h
index 69accd2b..51136806 100755
--- a/usrsctplib/netinet/sctp_asconf.h
+++ b/usrsctplib/netinet/sctp_asconf.h
@@ -32,7 +32,7 @@
#ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.h 309607 2016-12-06 10:21:25Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_asconf.h 324056 2017-09-27 13:05:23Z tuexen $");
#endif
#ifndef _NETINET_SCTP_ASCONF_H_
@@ -73,9 +73,6 @@ sctp_set_primary_ip_address_sa(struct sctp_tcb *,
struct sockaddr *);
extern void
-sctp_set_primary_ip_address(struct sctp_ifa *ifa);
-
-extern void
sctp_check_address_list(struct sctp_tcb *, struct mbuf *, int, int,
struct sockaddr *, uint16_t, uint16_t, uint16_t, uint16_t);