| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Valgrind reports that we do not free acd->interface:
==13496== 5 bytes in 1 blocks are definitely lost in loss record 9 of 194
==13496== at 0x4C2CB6B: malloc (vg_replace_malloc.c:299)
==13496== by 0x4E89378: g_malloc (gmem.c:94)
==13496== by 0x4EA294E: g_strdup (gstrfuncs.c:363)
==13496== by 0x461BD4: connman_inet_ifname (inet.c:274)
==13496== by 0x48E903: acd_host_new (acd.c:129)
==13496== by 0x43F1DF: start_acd (network.c:384)
==13496== by 0x43F3A2: dhcp_success (network.c:436)
==13496== by 0x43F4BD: dhcp_callback (network.c:487)
==13496== by 0x468A34: dhcp_valid (dhcp.c:176)
==13496== by 0x46975B: lease_available_cb (dhcp.c:519)
==13496== by 0x415E61: listener_event (client.c:2443)
==13496== by 0x4E83B96: g_main_dispatch (gmain.c:3142)
==13496== by 0x4E83B96: g_main_context_dispatch (gmain.c:3795)
|
|
|
|
| |
This is necessary to decide if DHCP can be tried again.
|
|
|
|
|
| |
Adds a D-Bus property called LastAddressConflict and a signal to
notify if the property changes.
|
|
|
|
|
| |
Adds function acd_host_register_event for registration of higher level address
conflict callback functions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds the callback functions for higher level address conflict
handling.
ipv4_available_cb will be called if there was no address conflict
detected.
ipv4_lost_cb will be called if another host is using our IPv4 address
and defending was not successfull.
ipv4_conflict_cb will be called if ACD detected a conflict during
probing and there had been less than MAX_CONFLICTS conflicts.
ipv4_max_conflicts_cb will be called if ACD detected a conflict during
probing and there had been at least MAX_CONFLICTS conflicts.
|
|
|
|
|
|
| |
Adds functions for starting and stopping of the ARP listening which is essential
for ACD. Adds also the callback function for processing received ARP packets
which does nothing for the moment.
|
|
|
|
|
| |
Adds an enum for the ACD state machine, the ACD struct, a function for
allocation and initialization of the struct.
|
|
Add first acd.h, acd.c, a configuration ACD on/off switch and a first
version of start_acd in network.c which does nothing for the moment.
|