Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341731
b: refs/heads/master
c: 077b393
h: refs/heads/master
i:
  341729: 549288c
  341727: 1ba80e2
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Dec 3, 2012
1 parent e2d74f9 commit 27c81d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 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: 049b467d7a57e7b978ce063ee3639670f383fb5c
refs/heads/master: 077b393d05915f04e2629bfc47c6fce95cae7d3f
2 changes: 0 additions & 2 deletions trunk/include/net/inet_hashtables.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,6 @@ static inline struct sock *inet_lookup_listener(struct net *net,
On 64bit targets we combine comparisons with pair of adjacent __be32
fields in the same way.
*/
typedef __u32 __bitwise __portpair;
#ifdef __BIG_ENDIAN
#define INET_COMBINED_PORTS(__sport, __dport) \
((__force __portpair)(((__force __u32)(__be16)(__sport) << 16) | (__u32)(__dport)))
Expand All @@ -287,7 +286,6 @@ typedef __u32 __bitwise __portpair;
#endif

#if (BITS_PER_LONG == 64)
typedef __u64 __bitwise __addrpair;
#ifdef __BIG_ENDIAN
#define INET_ADDR_COOKIE(__name, __saddr, __daddr) \
const __addrpair __name = (__force __addrpair) ( \
Expand Down
7 changes: 5 additions & 2 deletions trunk/include/net/sock.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ struct sock;
struct proto;
struct net;

typedef __u32 __bitwise __portpair;
typedef __u64 __bitwise __addrpair;

/**
* struct sock_common - minimal network layer representation of sockets
* @skc_daddr: Foreign IPv4 addr
Expand Down Expand Up @@ -155,7 +158,7 @@ struct sock_common {
* address on 64bit arches : cf INET_MATCH() and INET_TW_MATCH()
*/
union {
unsigned long skc_addrpair;
__addrpair skc_addrpair;
struct {
__be32 skc_daddr;
__be32 skc_rcv_saddr;
Expand All @@ -167,7 +170,7 @@ struct sock_common {
};
/* skc_dport && skc_num must be grouped as well */
union {
u32 skc_portpair;
__portpair skc_portpair;
struct {
__be16 skc_dport;
__u16 skc_num;
Expand Down

0 comments on commit 27c81d6

Please sign in to comment.