/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to plugins.d/mandos-client.c

* mandos (Client): Move all D-Bus code to new "ClientDBus" class.
  (Client.start_checker): Bug fix: update "current_checker_command" in
                          all cases.
  (ClientDBus): New class.
  (main): Use Client or ClientDBus depending on "use_dbus".
  (main/MandosDBusService.RemoveClient): Bug fix: make sure the client
                                         is removed from the D-Bus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 */
31
31
 
32
32
/* Needed by GPGME, specifically gpgme_data_seek() */
 
33
#ifndef _LARGEFILE_SOURCE
33
34
#define _LARGEFILE_SOURCE
 
35
#endif
 
36
#ifndef _FILE_OFFSET_BITS
34
37
#define _FILE_OFFSET_BITS 64
 
38
#endif
35
39
 
36
40
#define _GNU_SOURCE             /* TEMP_FAILURE_RETRY(), asprintf() */
37
41
 
562
566
  
563
567
  memset(&to, 0, sizeof(to));
564
568
  if(af == AF_INET6){
565
 
    to.in6.sin6_family = (uint16_t)af;
 
569
    to.in6.sin6_family = (sa_family_t)af;
566
570
    ret = inet_pton(af, ip, &to.in6.sin6_addr);
567
571
  } else {                      /* IPv4 */
568
572
    to.in.sin_family = (sa_family_t)af;