Moved host_t and host_resolver_t to a new networking subfolder

This commit is contained in:
Tobias Brunner 2012-10-16 14:29:18 +02:00
parent c4894cc172
commit 2e7cc07ecd
48 changed files with 60 additions and 54 deletions

View File

@ -24,7 +24,7 @@
#include <library.h>
#include <debug.h>
#include <tls_socket.h>
#include <utils/host.h>
#include <networking/host.h>
#include <credentials/sets/mem_cred.h>
/**

View File

@ -18,7 +18,7 @@
#include "nm_service.h"
#include <daemon.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/identification.h>
#include <config/peer_cfg.h>
#include <credentials/certificates/x509.h>

View File

@ -18,7 +18,7 @@
#include <library.h>
#include <utils/enumerator.h>
#include <utils/host.h>
#include <networking/host.h>
#define TAP_DEVICE "/dev/net/tun"

View File

@ -24,7 +24,7 @@
#include <jni.h>
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
typedef struct network_manager_t network_manager_t;

View File

@ -26,7 +26,7 @@
#include <jni.h>
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
typedef struct vpnservice_builder_t vpnservice_builder_t;

View File

@ -24,7 +24,7 @@
typedef struct backend_manager_t backend_manager_t;
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/identification.h>
#include <config/ike_cfg.h>
#include <config/peer_cfg.h>

View File

@ -26,7 +26,7 @@ typedef enum ike_version_t ike_version_t;
typedef struct ike_cfg_t ike_cfg_t;
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/linked_list.h>
#include <utils/identification.h>
#include <config/proposal.h>

View File

@ -28,7 +28,7 @@ typedef struct proposal_t proposal_t;
#include <library.h>
#include <utils/identification.h>
#include <utils/linked_list.h>
#include <utils/host.h>
#include <networking/host.h>
#include <crypto/transform.h>
#include <crypto/crypters/crypter.h>
#include <crypto/signers/signer.h>

View File

@ -25,7 +25,7 @@
typedef struct traffic_selector_substructure_t traffic_selector_substructure_t;
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <selectors/traffic_selector.h>
#include <encoding/payloads/payload.h>

View File

@ -26,7 +26,7 @@
typedef struct receiver_t receiver_t;
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/packet.h>
/**

View File

@ -16,7 +16,7 @@
#include "android_handler.h"
#include <utils/host.h>
#include <networking/host.h>
#include <utils/linked_list.h>
#include <cutils/properties.h>

View File

@ -21,7 +21,7 @@
#ifndef DHCP_TRANSACTION_H_
#define DHCP_TRANSACTION_H_
#include <utils/host.h>
#include <networking/host.h>
#include <utils/identification.h>
#include <attributes/attributes.h>

View File

@ -21,7 +21,7 @@
#ifndef FARP_LISTENER_H_
#define FARP_LISTENER_H_
#include <utils/host.h>
#include <networking/host.h>
#include <bus/listeners/listener.h>
typedef struct farp_listener_t farp_listener_t;

View File

@ -22,7 +22,7 @@
#define HA_MESSAGE_H_
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/identification.h>
#include <sa/ike_sa_id.h>
#include <selectors/traffic_selector.h>

View File

@ -22,7 +22,7 @@
#include <unistd.h>
#include <daemon.h>
#include <utils/host.h>
#include <networking/host.h>
#include <threading/thread.h>
#include <processing/jobs/callback_job.h>

View File

@ -15,14 +15,14 @@
/**
* @defgroup tnc_ifmap_soap tnc_ifmap_soap
* @{ @ingroup tnc_ifmap
* @{ @ingroup tnc_ifmap
*/
#ifndef TNC_IFMAP_SOAP_H_
#define TNC_IFMAP_SOAP_H_
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <sa/ike_sa.h>
typedef struct tnc_ifmap_soap_t tnc_ifmap_soap_t;
@ -47,7 +47,7 @@ struct tnc_ifmap_soap_t {
bool (*purgePublisher)(tnc_ifmap_soap_t *this);
/**
* Publish metadata about established/deleted IKE_SAs
* Publish metadata about established/deleted IKE_SAs
*
* @param ike_sa IKE_SA for which metadate is published
* @param up TRUE if IKE_SEA is up, FALSE if down
@ -56,7 +56,7 @@ struct tnc_ifmap_soap_t {
bool (*publish_ike_sa)(tnc_ifmap_soap_t *this, ike_sa_t *ike_sa, bool up);
/**
* Publish PEP device-ip metadata
* Publish PEP device-ip metadata
*
* @param host IP address of local endpoint
* @return TRUE if command was successful

View File

@ -24,7 +24,7 @@
typedef struct migrate_job_t migrate_job_t;
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <selectors/traffic_selector.h>
#include <kernel/kernel_ipsec.h>
#include <processing/jobs/job.h>

View File

@ -24,7 +24,7 @@
typedef struct update_sa_job_t update_sa_job_t;
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <processing/jobs/job.h>
/**

View File

@ -21,7 +21,7 @@
#ifndef ATTRIBUTE_PROVIDER_H_
#define ATTRIBUTE_PROVIDER_H_
#include <utils/host.h>
#include <networking/host.h>
#include <utils/identification.h>
#include <utils/linked_list.h>

View File

@ -24,7 +24,7 @@
typedef struct mem_pool_t mem_pool_t;
typedef enum mem_pool_op_t mem_pool_op_t;
#include <utils/host.h>
#include <networking/host.h>
#include <utils/identification.h>
/**

View File

@ -48,7 +48,7 @@
typedef struct kernel_interface_t kernel_interface_t;
#include <utils/host.h>
#include <networking/host.h>
#include <crypto/prf_plus.h>
#include <kernel/kernel_listener.h>

View File

@ -26,7 +26,7 @@
typedef struct kernel_ipsec_t kernel_ipsec_t;
#include <utils/host.h>
#include <networking/host.h>
#include <ipsec/ipsec_types.h>
#include <selectors/traffic_selector.h>
#include <plugins/plugin.h>

View File

@ -25,7 +25,7 @@ typedef struct kernel_listener_t kernel_listener_t;
#include <kernel/kernel_ipsec.h>
#include <selectors/traffic_selector.h>
#include <utils/host.h>
#include <networking/host.h>
/**
* Interface for components interested in kernel events.

View File

@ -26,7 +26,7 @@ typedef struct kernel_net_t kernel_net_t;
typedef enum kernel_address_type_t kernel_address_type_t;
#include <utils/enumerator.h>
#include <utils/host.h>
#include <networking/host.h>
#include <plugins/plugin.h>
/**

View File

@ -23,7 +23,7 @@
#include <debug.h>
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/identification.h>
#include <attributes/attributes.h>

View File

@ -17,7 +17,7 @@
#include <string.h>
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include "pool_attributes.h"
#include "pool_usage.h"

View File

@ -59,7 +59,7 @@
#include <hydra.h>
#include <debug.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/linked_list.h>
#include <utils/hashtable.h>
#include <threading/thread.h>

View File

@ -25,7 +25,7 @@
#include <hydra.h>
#include <debug.h>
#include <utils/host.h>
#include <networking/host.h>
#include <threading/thread.h>
#include <threading/mutex.h>
#include <threading/rwlock.h>

View File

@ -27,7 +27,7 @@
#include "esp_context.h"
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/packet.h>
typedef struct esp_packet_t esp_packet_t;

View File

@ -22,7 +22,7 @@
#define IP_PACKET_H_
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/packet.h>
typedef struct ip_packet_t ip_packet_t;

View File

@ -26,7 +26,7 @@
#include "ip_packet.h"
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <ipsec/ipsec_types.h>
#include <selectors/traffic_selector.h>

View File

@ -27,7 +27,7 @@
#include "ip_packet.h"
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/linked_list.h>
#include <ipsec/ipsec_types.h>
#include <selectors/traffic_selector.h>

View File

@ -26,7 +26,7 @@
#include "esp_context.h"
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
#include <selectors/traffic_selector.h>
#include <ipsec/ipsec_types.h>

View File

@ -28,7 +28,7 @@
#include <library.h>
#include <ipsec/ipsec_types.h>
#include <selectors/traffic_selector.h>
#include <utils/host.h>
#include <networking/host.h>
typedef struct ipsec_sa_mgr_t ipsec_sa_mgr_t;

View File

@ -20,7 +20,7 @@
#include <errno.h>
#include <debug.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/linked_list.h>
#include <threading/condvar.h>
#include <threading/mutex.h>

View File

@ -25,7 +25,7 @@ typedef struct radius_socket_t radius_socket_t;
#include "radius_message.h"
#include <utils/host.h>
#include <networking/host.h>
/**
* RADIUS socket to a server.

View File

@ -3,7 +3,7 @@ include $(CLEAR_VARS)
# copy-n-paste from Makefile.am
LOCAL_SRC_FILES := \
library.c chunk.c debug.c enum.c host_resolver.c settings.c printf_hook.c \
library.c chunk.c debug.c enum.c settings.c printf_hook.c \
asn1/asn1.c asn1/asn1_parser.c asn1/oid.c bio/bio_reader.c bio/bio_writer.c \
crypto/crypters/crypter.c crypto/hashers/hasher.c crypto/pkcs7.c crypto/pkcs9.c \
crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
@ -22,11 +22,12 @@ credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
ipsec/ipsec_types.c \
networking/host.c networking/host_resolver.c \
pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
utils.c utils/host.c utils/packet.c utils/identification.c utils/lexparser.c \
utils.c utils/packet.c utils/identification.c utils/lexparser.c \
utils/linked_list.c utils/blocking_queue.c utils/hashtable.c utils/enumerator.c \
utils/optionsfrom.c utils/capabilities.c utils/backtrace.c utils/tun_device.c

View File

@ -1,7 +1,7 @@
ipseclib_LTLIBRARIES = libstrongswan.la
libstrongswan_la_SOURCES = \
library.c chunk.c debug.c enum.c host_resolver.c settings.c printf_hook.c \
library.c chunk.c debug.c enum.c settings.c printf_hook.c \
asn1/asn1.c asn1/asn1_parser.c asn1/oid.c bio/bio_reader.c bio/bio_writer.c \
crypto/crypters/crypter.c crypto/hashers/hasher.c crypto/pkcs7.c crypto/pkcs9.c \
crypto/proposal/proposal_keywords.c crypto/proposal/proposal_keywords_static.c \
@ -20,18 +20,19 @@ credentials/sets/cert_cache.c credentials/sets/mem_cred.c \
credentials/sets/callback_cred.c credentials/auth_cfg.c database/database.c \
database/database_factory.c fetcher/fetcher.c fetcher/fetcher_manager.c eap/eap.c \
ipsec/ipsec_types.c \
networking/host.c networking/host_resolver.c \
pen/pen.c plugins/plugin_loader.c plugins/plugin_feature.c processing/jobs/job.c \
processing/jobs/callback_job.c processing/processor.c processing/scheduler.c \
selectors/traffic_selector.c threading/thread.c threading/thread_value.c \
threading/mutex.c threading/semaphore.c threading/rwlock.c threading/spinlock.c \
utils.c utils/host.c utils/packet.c utils/identification.c utils/lexparser.c \
utils.c utils/packet.c utils/identification.c utils/lexparser.c \
utils/linked_list.c utils/blocking_queue.c utils/hashtable.c utils/enumerator.c \
utils/optionsfrom.c utils/capabilities.c utils/backtrace.c utils/tun_device.c
if USE_DEV_HEADERS
strongswan_includedir = ${dev_headers}
nobase_strongswan_include_HEADERS = \
library.h chunk.h debug.h enum.h host_resolver.h settings.h printf_hook.h \
library.h chunk.h debug.h enum.h settings.h printf_hook.h \
asn1/asn1.h asn1/asn1_parser.h asn1/oid.h bio/bio_reader.h bio/bio_writer.h \
crypto/crypters/crypter.h crypto/hashers/hasher.h crypto/mac.h \
crypto/pkcs7.h crypto/pkcs9.h crypto/proposal/proposal_keywords.h \
@ -55,13 +56,14 @@ credentials/sets/mem_cred.h credentials/sets/callback_cred.h \
credentials/auth_cfg.h credentials/credential_set.h credentials/cert_validator.h \
database/database.h database/database_factory.h fetcher/fetcher.h \
fetcher/fetcher_manager.h eap/eap.h pen/pen.h ipsec/ipsec_types.h \
networking/host.h networking/host_resolver.h \
plugins/plugin_loader.h plugins/plugin.h plugins/plugin_feature.h \
processing/jobs/job.h processing/jobs/callback_job.h processing/processor.h \
processing/scheduler.h selectors/traffic_selector.h \
threading/thread.h threading/thread_value.h \
threading/mutex.h threading/condvar.h threading/spinlock.h threading/semaphore.h \
threading/rwlock.h threading/rwlock_condvar.h threading/lock_profiler.h \
utils.h utils/host.h utils/packet.h utils/identification.h utils/lexparser.h \
utils.h utils/packet.h utils/identification.h utils/lexparser.h \
utils/linked_list.h utils/blocking_queue.h utils/hashtable.h utils/enumerator.h \
utils/optionsfrom.h utils/capabilities.h utils/backtrace.h utils/tun_device.h \
utils/leak_detective.h integrity_checker.h

View File

@ -21,7 +21,7 @@
#include <debug.h>
#include <threading/thread.h>
#include <utils/identification.h>
#include <utils/host.h>
#include <networking/host.h>
#include <utils/hashtable.h>
#include <utils/backtrace.h>
#include <selectors/traffic_selector.h>

View File

@ -46,6 +46,9 @@
* @defgroup ipsec ipsec
* @ingroup libstrongswan
*
* @defgroup networking networking
* @ingroup libstrongswan
*
* @defgroup plugins plugins
* @ingroup libstrongswan
*
@ -77,9 +80,9 @@
#include "printf_hook.h"
#include "utils.h"
#include "chunk.h"
#include "host_resolver.h"
#include "settings.h"
#include "integrity_checker.h"
#include "networking/host_resolver.h"
#include "processing/processor.h"
#include "processing/scheduler.h"
#include "crypto/crypto_factory.h"

View File

@ -18,7 +18,7 @@
/**
* @defgroup host host
* @{ @ingroup utils
* @{ @ingroup networking
*/
#ifndef HOST_H_

View File

@ -15,13 +15,13 @@
/**
* @defgroup host_resolver host_resolver
* @{ @ingroup libstrongswan
* @{ @ingroup networking
*/
#ifndef HOST_RESOLVER_H_
#define HOST_RESOLVER_H_
#include "utils/host.h"
#include "host.h"
typedef struct host_resolver_t host_resolver_t;

View File

@ -27,7 +27,7 @@ typedef enum ts_type_t ts_type_t;
typedef struct traffic_selector_t traffic_selector_t;
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
/**
* Traffic selector types.

View File

@ -26,7 +26,7 @@
typedef struct packet_t packet_t;
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
/**
* Abstraction of an IP/UDP-Packet, contains data, sender and receiver.

View File

@ -24,7 +24,7 @@
#define TUN_DEVICE_H_
#include <library.h>
#include <utils/host.h>
#include <networking/host.h>
typedef struct tun_device_t tun_device_t;

View File

@ -21,7 +21,7 @@
#ifndef GATEWAY_H_
#define GATEWAY_H_
#include <utils/host.h>
#include <networking/host.h>
#include <utils/enumerator.h>
typedef struct gateway_t gateway_t;