Skip to content

Commit

Permalink
Added RD_SOCKADDR_INX_CMP()
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed Jun 18, 2013
1 parent 26f8f0f commit 8a2883b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rdaddr.h
Expand Up @@ -57,6 +57,9 @@ typedef union {
(sinx)->in6.sin6_port = port; \
} while (0)

#define RD_SOCKADDR_INX_CMP(a,b) \
(!(RD_SOCKADDR_INX_LEN(a) == RD_SOCKADDR_INX_LEN(b) && \
!memcmp((a), (b), RD_SOCKADDR_INX_LEN(a))))


/**
Expand Down

0 comments on commit 8a2883b

Please sign in to comment.