Improve compilation on platforms different from FreeBSD.

This commit is contained in:
Michael Tuexen 2017-06-23 08:34:01 +00:00
parent 9823ed182c
commit 3017b21bb6
3 changed files with 1 additions and 6 deletions

View File

@ -5194,7 +5194,7 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length,
return (NULL);
}
}
/*
/*-
* First are we accepting? We do this again here
* since it is possible that a previous endpoint WAS
* listening responded to a INIT-ACK and then

View File

@ -7240,8 +7240,6 @@ sctp_over_udp_start(void)
return (0);
}
#if defined(INET6) || defined(INET)
/*
* sctp_min_mtu ()returns the minimum of all non-zero arguments.
* If all arguments are zero, zero is returned.
@ -7325,4 +7323,3 @@ sctp_hc_get_mtu(union sctp_sockstore *addr, uint16_t fibnum)
}
return ((uint32_t)tcp_hc_getmtu(&inc));
}
#endif

View File

@ -388,10 +388,8 @@ sctp_auditing(int, struct sctp_inpcb *, struct sctp_tcb *,
void sctp_audit_log(uint8_t, uint8_t);
#endif
#if defined(INET6) || defined(INET)
uint32_t sctp_min_mtu(uint32_t, uint32_t, uint32_t);
void sctp_hc_set_mtu(union sctp_sockstore *, uint16_t, uint32_t);
uint32_t sctp_hc_get_mtu(union sctp_sockstore *, uint16_t);
#endif
#endif /* _KERNEL */
#endif