Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41842
b: refs/heads/master
c: c9c938c
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and David S. Miller committed Dec 3, 2006
1 parent f491961 commit 57b4f71
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7dcdbd9579c944bb833f95a7f276d01f49161734
refs/heads/master: c9c938cb050e6d45088c5c39e4097742e875c496
22 changes: 0 additions & 22 deletions trunk/include/net/sctp/structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,28 +74,6 @@ union sctp_addr {
struct sockaddr sa;
};

static inline void flip_to_n(union sctp_addr *to, const union sctp_addr *from)
{
size_t len;
if (from->sa.sa_family == AF_INET6)
len = sizeof(struct sockaddr_in6);
else
len = sizeof(struct sockaddr);
memcpy(to, from, len);
to->v4.sin_port = htons(from->v4.sin_port);
}

static inline void flip_to_h(union sctp_addr *to, const union sctp_addr *from)
{
size_t len;
if (from->sa.sa_family == AF_INET6)
len = sizeof(struct sockaddr_in6);
else
len = sizeof(struct sockaddr);
memcpy(to, from, len);
to->v4.sin_port = ntohs(from->v4.sin_port);
}

/* Forward declarations for data structures. */
struct sctp_globals;
struct sctp_endpoint;
Expand Down

0 comments on commit 57b4f71

Please sign in to comment.