aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/sctp/structs.h1
-rw-r--r--net/sctp/bind_addr.c2
-rw-r--r--net/sctp/ipv6.c1
-rw-r--r--net/sctp/protocol.c1
4 files changed, 0 insertions, 5 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index 9bb5c038b95a..bb857957a88a 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -757,7 +757,6 @@ const union sctp_addr *sctp_source(const struct sctp_chunk *chunk);
757struct sctp_sockaddr_entry { 757struct sctp_sockaddr_entry {
758 struct list_head list; 758 struct list_head list;
759 union sctp_addr a; 759 union sctp_addr a;
760 union sctp_addr a_h;
761 __u8 use_as_src; 760 __u8 use_as_src;
762}; 761};
763 762
diff --git a/net/sctp/bind_addr.c b/net/sctp/bind_addr.c
index d6664dd30e56..00994158e496 100644
--- a/net/sctp/bind_addr.c
+++ b/net/sctp/bind_addr.c
@@ -163,8 +163,6 @@ int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new,
163 if (!addr->a.v4.sin_port) 163 if (!addr->a.v4.sin_port)
164 addr->a.v4.sin_port = htons(bp->port); 164 addr->a.v4.sin_port = htons(bp->port);
165 165
166 flip_to_h(&addr->a_h, &addr->a);
167
168 addr->use_as_src = use_as_src; 166 addr->use_as_src = use_as_src;
169 167
170 INIT_LIST_HEAD(&addr->list); 168 INIT_LIST_HEAD(&addr->list);
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
index b3fa426bd1dc..04d5e13e9183 100644
--- a/net/sctp/ipv6.c
+++ b/net/sctp/ipv6.c
@@ -336,7 +336,6 @@ static void sctp_v6_copy_addrlist(struct list_head *addrlist,
336 addr->a.v6.sin6_port = 0; 336 addr->a.v6.sin6_port = 0;
337 addr->a.v6.sin6_addr = ifp->addr; 337 addr->a.v6.sin6_addr = ifp->addr;
338 addr->a.v6.sin6_scope_id = dev->ifindex; 338 addr->a.v6.sin6_scope_id = dev->ifindex;
339 addr->a_h = addr->a;
340 INIT_LIST_HEAD(&addr->list); 339 INIT_LIST_HEAD(&addr->list);
341 list_add_tail(&addr->list, addrlist); 340 list_add_tail(&addr->list, addrlist);
342 } 341 }
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index c20f05b3308f..807c97da33a5 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -153,7 +153,6 @@ static void sctp_v4_copy_addrlist(struct list_head *addrlist,
153 addr->a.v4.sin_family = AF_INET; 153 addr->a.v4.sin_family = AF_INET;
154 addr->a.v4.sin_port = 0; 154 addr->a.v4.sin_port = 0;
155 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; 155 addr->a.v4.sin_addr.s_addr = ifa->ifa_local;
156 addr->a_h = addr->a;
157 list_add_tail(&addr->list, addrlist); 156 list_add_tail(&addr->list, addrlist);
158 } 157 }
159 } 158 }