moved typedefs to beginning of files to solve some include problems
splitted authenticator to have a separate implementation for each auth_method_t using va_copy to clone va_lists, should fix proplems on AMD64 some other cleanups
This commit is contained in:
@@ -20,23 +20,21 @@
|
||||
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
* for more details.
|
||||
*/
|
||||
|
||||
|
||||
#ifndef PACKET_H_
|
||||
#define PACKET_H_
|
||||
|
||||
typedef struct packet_t packet_t;
|
||||
|
||||
#include <types.h>
|
||||
#include <utils/host.h>
|
||||
|
||||
|
||||
typedef struct packet_t packet_t;
|
||||
|
||||
/**
|
||||
* @brief Abstraction of an UDP-Packet, contains data, sender and receiver.
|
||||
*
|
||||
*
|
||||
* @b Constructors:
|
||||
* - packet_create()
|
||||
*
|
||||
*
|
||||
* @ingroup network
|
||||
*/
|
||||
struct packet_t {
|
||||
|
||||
@@ -25,25 +25,22 @@
|
||||
#ifndef SOCKET_H_
|
||||
#define SOCKET_H_
|
||||
|
||||
typedef struct socket_t socket_t;
|
||||
|
||||
#include <types.h>
|
||||
#include <network/packet.h>
|
||||
#include <utils/host.h>
|
||||
#include <utils/linked_list.h>
|
||||
|
||||
|
||||
/**
|
||||
* @brief Maximum size of a packet.
|
||||
*
|
||||
*
|
||||
* 3000 Bytes should be sufficient, see IKEv2 RFC.
|
||||
*
|
||||
*
|
||||
* @ingroup network
|
||||
*/
|
||||
#define MAX_PACKET 3000
|
||||
|
||||
|
||||
typedef struct socket_t socket_t;
|
||||
|
||||
/**
|
||||
* @brief Abstraction of all sockets (IPv6/IPv6 send/receive).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user