37,6 → 37,12 |
#ifndef __NET_IP_CLIENT_H__ |
#define __NET_IP_CLIENT_H__ |
|
#include <sys/types.h> |
|
typedef uint8_t ip_ttl_t; |
typedef uint8_t ip_tos_t; |
typedef uint8_t ip_protocol_t; |
|
#include "../structures/packet/packet.h" |
|
#define IPVERSION 4 |
127,7 → 133,7 |
#define IPOPT_TS_TSANDADDR 1 /* timestamps and addresses */ |
#define IPOPT_TS_PRESPEC 3 /* specified modules only */ |
|
int ip_client_prepare_packet( packet_t packet, int protocol, int ttl, int tos, int dont_fragment, int ipopt_length ); |
int ip_client_prepare_packet( packet_t packet, ip_protocol_t protocol, ip_ttl_t ttl, ip_tos_t tos, int dont_fragment, size_t ipopt_length ); |
|
// TODO ipopt manipulation |
|