diff options
| author | Michael Tuexen <tuexen@fh-muenster.de> | 2022-02-18 15:23:58 +0100 |
|---|---|---|
| committer | Michael Tuexen <tuexen@fh-muenster.de> | 2022-02-18 15:23:58 +0100 |
| commit | ed352c4a5b4263d416416377accdf0fcd5fd6f6e (patch) | |
| tree | b380d1695743489668e75d22822778cd0b8758a8 | |
| parent | 47816403c5c59a1ed706679640d4031e6a6ed4e0 (diff) | |
Remove unused parameter
| -rwxr-xr-x | usrsctplib/netinet/sctp_os_userspace.h | 2 | ||||
| -rwxr-xr-x | usrsctplib/netinet/sctp_pcb.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/usrsctplib/netinet/sctp_os_userspace.h b/usrsctplib/netinet/sctp_os_userspace.h index 56e49cc..77c39a1 100755 --- a/usrsctplib/netinet/sctp_os_userspace.h +++ b/usrsctplib/netinet/sctp_os_userspace.h @@ -885,7 +885,7 @@ static inline void sctp_userspace_rtfree(sctp_rtentry_t *rt) /*************************/ int sctp_userspace_get_mtu_from_ifn(uint32_t if_index); -#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index, af) sctp_userspace_get_mtu_from_ifn(ifn_index) +#define SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index) sctp_userspace_get_mtu_from_ifn(ifn_index) #define SCTP_GATHER_MTU_FROM_ROUTE(sctp_ifa, sa, rt) ((rt != NULL) ? rt->rt_rmx.rmx_mtu : 0) diff --git a/usrsctplib/netinet/sctp_pcb.c b/usrsctplib/netinet/sctp_pcb.c index 28cb497..24ac6c4 100755 --- a/usrsctplib/netinet/sctp_pcb.c +++ b/usrsctplib/netinet/sctp_pcb.c @@ -594,7 +594,7 @@ sctp_add_addr_to_vrf(uint32_t vrf_id, void *ifn, uint32_t ifn_index, sctp_ifnp->refcount = 0; sctp_ifnp->vrf = vrf; atomic_add_int(&vrf->refcount, 1); - sctp_ifnp->ifn_mtu = SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index, addr->sa_family); + sctp_ifnp->ifn_mtu = SCTP_GATHER_MTU_FROM_IFN_INFO(ifn, ifn_index); if (if_name != NULL) { SCTP_SNPRINTF(sctp_ifnp->ifn_name, SCTP_IFNAMSIZ, "%s", if_name); } else { |
