Subversion Repositories HelenOS

Rev

Rev 4505 | Rev 4704 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4505 Rev 4558
Line 35... Line 35...
35
 */
35
 */
36
 
36
 
37
#ifndef __NET_IP_CLIENT_H__
37
#ifndef __NET_IP_CLIENT_H__
38
#define __NET_IP_CLIENT_H__
38
#define __NET_IP_CLIENT_H__
39
 
39
 
-
 
40
#include <sys/types.h>
-
 
41
 
-
 
42
typedef uint8_t ip_ttl_t;
-
 
43
typedef uint8_t ip_tos_t;
-
 
44
typedef uint8_t ip_protocol_t;
-
 
45
 
40
#include "../structures/packet/packet.h"
46
#include "../structures/packet/packet.h"
41
 
47
 
42
#define IPVERSION   4
48
#define IPVERSION   4
43
#define MAXTTL      255
49
#define MAXTTL      255
44
#define IPDEFTTL    64
50
#define IPDEFTTL    64
Line 125... Line 131...
125
 
131
 
126
#define IPOPT_TS_TSONLY     0       /* timestamps only */
132
#define IPOPT_TS_TSONLY     0       /* timestamps only */
127
#define IPOPT_TS_TSANDADDR  1       /* timestamps and addresses */
133
#define IPOPT_TS_TSANDADDR  1       /* timestamps and addresses */
128
#define IPOPT_TS_PRESPEC    3       /* specified modules only */
134
#define IPOPT_TS_PRESPEC    3       /* specified modules only */
129
 
135
 
130
int ip_client_prepare_packet( packet_t packet, int protocol, int ttl, int tos, int dont_fragment, int ipopt_length );
136
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 );
131
 
137
 
132
// TODO ipopt manipulation
138
// TODO ipopt manipulation
133
 
139
 
134
#endif
140
#endif
135
 
141