Author: tuexen
Date: Fri Jun 19 12:35:29 2020
New Revision: 362377
URL: https://svnweb.freebsd.org/changeset/base/362377

Log:
  Remove last argument of sctp_addr_mgmt_ep_sa(), since it is not used.
  
  MFC after:            1 week

Modified:
  head/sys/netinet/sctp_asconf.c
  head/sys/netinet/sctp_asconf.h
  head/sys/netinet/sctputil.c

Modified: head/sys/netinet/sctp_asconf.c
==============================================================================
--- head/sys/netinet/sctp_asconf.c      Fri Jun 19 11:47:40 2020        
(r362376)
+++ head/sys/netinet/sctp_asconf.c      Fri Jun 19 12:35:29 2020        
(r362377)
@@ -3165,7 +3165,7 @@ sctp_check_address_list(struct sctp_tcb *stcb, struct 
  */
 uint32_t
 sctp_addr_mgmt_ep_sa(struct sctp_inpcb *inp, struct sockaddr *sa,
-    uint32_t type, uint32_t vrf_id, struct sctp_ifa *sctp_ifap)
+    uint32_t type, uint32_t vrf_id)
 {
        struct sctp_ifa *ifa;
        struct sctp_laddr *laddr, *nladdr;
@@ -3174,9 +3174,7 @@ sctp_addr_mgmt_ep_sa(struct sctp_inpcb *inp, struct so
                SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_ASCONF, 
EINVAL);
                return (EINVAL);
        }
-       if (sctp_ifap) {
-               ifa = sctp_ifap;
-       } else if (type == SCTP_ADD_IP_ADDRESS) {
+       if (type == SCTP_ADD_IP_ADDRESS) {
                /* For an add the address MUST be on the system */
                ifa = sctp_find_ifa_by_addr(sa, vrf_id, SCTP_ADDR_NOT_LOCKED);
        } else if (type == SCTP_DEL_IP_ADDRESS) {

Modified: head/sys/netinet/sctp_asconf.h
==============================================================================
--- head/sys/netinet/sctp_asconf.h      Fri Jun 19 11:47:40 2020        
(r362376)
+++ head/sys/netinet/sctp_asconf.h      Fri Jun 19 12:35:29 2020        
(r362377)
@@ -56,8 +56,8 @@ sctp_handle_asconf_ack(struct mbuf *, int, struct sctp
     struct sctp_tcb *, struct sctp_nets *, int *);
 
 extern uint32_t
-sctp_addr_mgmt_ep_sa(struct sctp_inpcb *, struct sockaddr *,
-    uint32_t, uint32_t, struct sctp_ifa *);
+sctp_addr_mgmt_ep_sa(struct sctp_inpcb *, struct sockaddr *, uint32_t,
+    uint32_t);
 
 
 extern int

Modified: head/sys/netinet/sctputil.c
==============================================================================
--- head/sys/netinet/sctputil.c Fri Jun 19 11:47:40 2020        (r362376)
+++ head/sys/netinet/sctputil.c Fri Jun 19 12:35:29 2020        (r362377)
@@ -6804,8 +6804,7 @@ sctp_bindx_add_address(struct socket *so, struct sctp_
                } else if (lep == NULL) {
                        ((struct sockaddr_in *)addr_touse)->sin_port = 0;
                        *error = sctp_addr_mgmt_ep_sa(inp, addr_touse,
-                           SCTP_ADD_IP_ADDRESS,
-                           vrf_id, NULL);
+                           SCTP_ADD_IP_ADDRESS, vrf_id);
                } else {
                        *error = EADDRINUSE;
                }
@@ -6896,8 +6895,7 @@ sctp_bindx_delete_address(struct sctp_inpcb *inp,
        if (assoc_id == 0) {
                /* delete the address */
                *error = sctp_addr_mgmt_ep_sa(inp, addr_touse,
-                   SCTP_DEL_IP_ADDRESS,
-                   vrf_id, NULL);
+                   SCTP_DEL_IP_ADDRESS, vrf_id);
        } else {
                /*
                 * FIX: decide whether we allow assoc based bindx
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to