Skip to content

Instantly share code, notes, and snippets.

@OlegHahm
Created January 17, 2014 13:26
Show Gist options
  • Save OlegHahm/8473333 to your computer and use it in GitHub Desktop.
Save OlegHahm/8473333 to your computer and use it in GitHub Desktop.
test_pnet Makefile
diff --git a/tests/test_pnet/main.c b/tests/test_pnet/main.c
index 204cb56..ee6265c 100644
--- a/tests/test_pnet/main.c
+++ b/tests/test_pnet/main.c
@@ -33,14 +33,14 @@ int main(void) {
int sockfd, res;
struct sockaddr_in6 my_addr, their_addr = {
.sin6_family = AF_INET6,
- .sin6_port = 0,
+ .sin6_port = PORT,
.sin6_flowinfo = 0,
#if R_ADDR == 1
.sin6_addr = {{{0xab, 0xcd, 0xef, 0x12, 0, 0, 0x10, 0x34, 0, 0, 0xff, 0xfe,
- 0, 0, 2}}},
+ 0, 0, 0, 2}}},
#else
.sin6_addr = {{{0xab, 0xcd, 0xef, 0x12, 0, 0, 0x10, 0x34, 0, 0, 0xff, 0xfe,
- 0, 0, 1}}},
+ 0, 0, 0, 1}}},
#endif
.sin6_scope_id = 0,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment