Commit 58bcbb8e authored by Dafydd Harries's avatar Dafydd Harries
Browse files

add port to address struct; compare it in address_is_equal

darcs-hash:20070202111444-c9803-19acc3f2fc3b542af9826a1f42ed23973a8fd941.gz
parent 887a92c3
...@@ -66,7 +66,7 @@ nice_address_equal (NiceAddress *a, NiceAddress *b) ...@@ -66,7 +66,7 @@ nice_address_equal (NiceAddress *a, NiceAddress *b)
return FALSE; return FALSE;
if (a->type == NICE_ADDRESS_TYPE_IPV4) if (a->type == NICE_ADDRESS_TYPE_IPV4)
return a->addr_ipv4 == b->addr_ipv4; return (a->addr_ipv4 == b->addr_ipv4) && (a->port == b->port);
g_assert_not_reached (); g_assert_not_reached ();
} }
......
...@@ -25,6 +25,7 @@ struct _NiceAddress ...@@ -25,6 +25,7 @@ struct _NiceAddress
guint32 addr_ipv4; guint32 addr_ipv4;
guchar addr_ipv6[16]; guchar addr_ipv6[16];
}; };
guint16 port;
}; };
NiceAddress * NiceAddress *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment