aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2006-11-20 20:24:36 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-03 00:27:07 -0500
commitc9c938cb050e6d45088c5c39e4097742e875c496 (patch)
treeaac9ff2673584fd66e030c8ab6068f5cef10e7e9
parent7dcdbd9579c944bb833f95a7f276d01f49161734 (diff)
[SCTP]: flip_to_{h,n}() are not needed anymore.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/sctp/structs.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index 02f1fd5de4be..d44202b0487d 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -74,28 +74,6 @@ union sctp_addr {
74 struct sockaddr sa; 74 struct sockaddr sa;
75}; 75};
76 76
77static inline void flip_to_n(union sctp_addr *to, const union sctp_addr *from)
78{
79 size_t len;
80 if (from->sa.sa_family == AF_INET6)
81 len = sizeof(struct sockaddr_in6);
82 else
83 len = sizeof(struct sockaddr);
84 memcpy(to, from, len);
85 to->v4.sin_port = htons(from->v4.sin_port);
86}
87
88static inline void flip_to_h(union sctp_addr *to, const union sctp_addr *from)
89{
90 size_t len;
91 if (from->sa.sa_family == AF_INET6)
92 len = sizeof(struct sockaddr_in6);
93 else
94 len = sizeof(struct sockaddr);
95 memcpy(to, from, len);
96 to->v4.sin_port = ntohs(from->v4.sin_port);
97}
98
99/* Forward declarations for data structures. */ 77/* Forward declarations for data structures. */
100struct sctp_globals; 78struct sctp_globals;
101struct sctp_endpoint; 79struct sctp_endpoint;