diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2017-04-26 19:26:40 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2017-04-26 19:26:40 +0000 |
commit | 6ebfa5ee1405050b43837f98797f1bcf2c6e4f92 (patch) | |
tree | f1d0714a9cf001093aba7948bac40396c68a125c /sys/netinet6 | |
parent | a63222db3a2dfe97537f8ae60eaed26d3b928e55 (diff) | |
download | src-6ebfa5ee1405050b43837f98797f1bcf2c6e4f92.tar.gz src-6ebfa5ee1405050b43837f98797f1bcf2c6e4f92.zip |
Use consistently uint32_t for mtu values.
This does not change functionality, but this cleanup is need for further
improvements of ICMP handling.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=317457
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/sctp6_usrreq.c | 4 | ||||
-rw-r--r-- | sys/netinet6/sctp6_var.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c index c2a45a661333..02310c9eb7bc 100644 --- a/sys/netinet6/sctp6_usrreq.c +++ b/sys/netinet6/sctp6_usrreq.c @@ -183,7 +183,7 @@ sctp6_notify(struct sctp_inpcb *inp, struct sctp_nets *net, uint8_t icmp6_type, uint8_t icmp6_code, - uint16_t next_mtu) + uint32_t next_mtu) { #if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING) struct socket *so; @@ -383,7 +383,7 @@ sctp6_ctlinput(int cmd, struct sockaddr *pktdst, void *d) sctp6_notify(inp, stcb, net, ip6cp->ip6c_icmp6->icmp6_type, ip6cp->ip6c_icmp6->icmp6_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 */ diff --git a/sys/netinet6/sctp6_var.h b/sys/netinet6/sctp6_var.h index 232fee15da1d..a24ceba7ee15 100644 --- a/sys/netinet6/sctp6_var.h +++ b/sys/netinet6/sctp6_var.h @@ -49,6 +49,6 @@ sctp6_output(struct sctp_inpcb *, struct mbuf *, struct sockaddr *, void sctp6_ctlinput(int, struct sockaddr *, void *); void sctp6_notify(struct sctp_inpcb *, struct sctp_tcb *, struct sctp_nets *, - uint8_t, uint8_t, uint16_t); + uint8_t, uint8_t, uint32_t); #endif #endif |