aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/testcases/receiver_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/testcases/receiver_test.c')
-rw-r--r--Source/charon/testcases/receiver_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/charon/testcases/receiver_test.c b/Source/charon/testcases/receiver_test.c
index 6e1114ac8..471659f88 100644
--- a/Source/charon/testcases/receiver_test.c
+++ b/Source/charon/testcases/receiver_test.c
@@ -60,8 +60,8 @@ void test_receiver(tester_t *tester)
for (i = 0; i < NUMBER_OF_PACKETS_TO_SEND; i++)
{
- packet = packet_create(AF_INET);
- packet->set_destination(packet,DESTINATION_IP,PORT_TO_SEND);
+ packet = packet_create();
+ packet->destination = host_create(AF_INET,DESTINATION_IP,PORT_TO_SEND);
packet->data.ptr = allocator_alloc_thing(int);
packet->data.len = ( sizeof(int));
*((int *) (packet->data.ptr)) = i;