diff options
Diffstat (limited to 'include/net/sctp/sctp.h')
-rw-r--r-- | include/net/sctp/sctp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 90c1cccd164d..f6e7397e799d 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
@@ -554,6 +554,8 @@ static inline void sctp_v6_map_v4(union sctp_addr *addr) | |||
554 | static inline void sctp_v4_map_v6(union sctp_addr *addr) | 554 | static inline void sctp_v4_map_v6(union sctp_addr *addr) |
555 | { | 555 | { |
556 | addr->v6.sin6_family = AF_INET6; | 556 | addr->v6.sin6_family = AF_INET6; |
557 | addr->v6.sin6_flowinfo = 0; | ||
558 | addr->v6.sin6_scope_id = 0; | ||
557 | addr->v6.sin6_port = addr->v4.sin_port; | 559 | addr->v6.sin6_port = addr->v4.sin_port; |
558 | addr->v6.sin6_addr.s6_addr32[3] = addr->v4.sin_addr.s_addr; | 560 | addr->v6.sin6_addr.s6_addr32[3] = addr->v4.sin_addr.s_addr; |
559 | addr->v6.sin6_addr.s6_addr32[0] = 0; | 561 | addr->v6.sin6_addr.s6_addr32[0] = 0; |