-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: HAVE_INET6 is always defined (#1046)
- Loading branch information
Showing
6 changed files
with
0 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,11 +86,9 @@ int test_sip_addr(void) | |
"\"Agmund Bolt\" <sip:[email protected]:5060;lr;user=phone>" | ||
";tag=foo123;bar=9d7j3", | ||
|
||
#ifdef HAVE_INET6 | ||
/* RFC 5118 - SIP Torture Test Messages for IPv6 */ | ||
"\"Caller\" <sip:caller@[2001:db8::1]>", | ||
"\"Caller\" <sip:caller@[2001:db8::1]:5080>", | ||
#endif | ||
|
||
/* gruu */ | ||
"\"hei\" <sip:[email protected]:32829;keepalive=crlf>" | ||
|
@@ -165,11 +163,9 @@ int test_sip_via(void) | |
{SIP_TRANSP_UDP, "1.2.3.4", 1234, "z9ghkdkasd"}, | ||
{SIP_TRANSP_TCP, "123.123.123.123", 0, "b0ajsd01abcdef918"}, | ||
{SIP_TRANSP_TCP, "myhost.com", 0, "b0ajsd01ab2838475"}, | ||
#ifdef HAVE_INET6 | ||
{SIP_TRANSP_TCP, "fe80::215:58ff:fe2d:90ab", 5060, | ||
"b0ajs01cde38475"}, | ||
{SIP_TRANSP_TLS, "fe80::215:58ff:fe2d:90ab", 0, "47daasd5"} | ||
#endif | ||
}; | ||
struct sip_msg *msg = NULL; | ||
struct mbuf *mb; | ||
|
@@ -198,11 +194,9 @@ int test_sip_via(void) | |
|
||
ipaddr = !sa_set_str(&addr, testv[i].host, testv[i].port); | ||
|
||
#ifdef HAVE_INET6 | ||
if (ipaddr && AF_INET6 == sa_af(&addr)) | ||
err = mbuf_printf(mb, "[%s]", testv[i].host); | ||
else | ||
#endif | ||
err = mbuf_printf(mb, "%s", testv[i].host); | ||
if (err) | ||
goto out; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,6 @@ int test_uri(void) | |
"sip:atlanta.com;method=REGISTER?to=alice%40atlanta.com", | ||
"sip:alice;[email protected]", | ||
|
||
#ifdef HAVE_INET6 | ||
/* IPv6 */ | ||
"sip:[::1];transport=udp", | ||
"sip:[::1]:1234;transport=udp", | ||
|
@@ -53,7 +52,6 @@ int test_uri(void) | |
"sip:[2001:db8::10:5070]", | ||
"sip:[2001:db8::10]:5070", | ||
"sip:user@[2001:db8::10]", | ||
#endif | ||
}; | ||
struct uri uri; | ||
struct mbuf mb; | ||
|
@@ -124,7 +122,6 @@ int test_uri_encode(void) | |
PL("")}, | ||
"sip:user:pass@host:443/wss/;transport=wss" | ||
}, | ||
#ifdef HAVE_INET6 | ||
{{PL("sip"), | ||
PL("user"), | ||
PL(""), | ||
|
@@ -135,7 +132,6 @@ int test_uri_encode(void) | |
PL("")}, | ||
"sip:user@[::1]:1234;transport=udp" | ||
} | ||
#endif | ||
}; | ||
struct mbuf mb; | ||
int err = EINVAL; | ||
|