summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctputil.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2017-06-01 08:48:16 +0000
committertuexen <tuexen@FreeBSD.org>2017-06-01 08:48:16 +0000
commit2e47a74a24c3e749dc11e4b58056226eb0a32db7 (patch)
treebb291079c91406ec96a990f8e97b2e8d9ab4b97c /sys/netinet/sctputil.c
parentaa246c75a1e128eeda7d63bdd5c062d7565f7fc3 (diff)
downloadFreeBSD-src-2e47a74a24c3e749dc11e4b58056226eb0a32db7.zip
FreeBSD-src-2e47a74a24c3e749dc11e4b58056226eb0a32db7.tar.gz
MFC r317457:
Use consistently uint32_t for mtu values. This does not change functionality, but this cleanup is need for further improvements of ICMP handling.
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r--sys/netinet/sctputil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index 1b51731..2951ad6 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -6971,7 +6971,7 @@ sctp_recv_icmp_tunneled_packet(int cmd, struct sockaddr *sa, void *vip, void *ct
}
sctp_notify(inp, stcb, net, type, code,
ntohs(inner_ip->ip_len),
- ntohs(icmp->icmp_nextmtu));
+ (uint32_t)ntohs(icmp->icmp_nextmtu));
} else {
if ((stcb == NULL) && (inp != NULL)) {
/* reduce ref-count */
@@ -7113,7 +7113,7 @@ sctp_recv_icmp6_tunneled_packet(int cmd, struct sockaddr *sa, void *d, void *ctx
code = ICMP6_PARAMPROB_NEXTHEADER;
}
sctp6_notify(inp, stcb, net, type, code,
- (uint16_t)ntohl(ip6cp->ip6c_icmp6->icmp6_mtu));
+ ntohl(ip6cp->ip6c_icmp6->icmp6_mtu));
} else {
if ((stcb == NULL) && (inp != NULL)) {
/* reduce inp's ref-count */
OpenPOWER on IntegriCloud