Subversion Repositories HelenOS

Rev

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

Rev 4721 Rev 4722
Line 40... Line 40...
40
#include <sys/types.h>
40
#include <sys/types.h>
41
 
41
 
42
#include "../structures/packet/packet.h"
42
#include "../structures/packet/packet.h"
43
 
43
 
44
#include "ip_codes.h"
44
#include "ip_codes.h"
-
 
45
#include "ip_interface.h"
-
 
46
#include "socket_codes.h"
45
 
47
 
46
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 );
48
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 );
47
 
49
 
48
int ip_client_process_packet( packet_t packet, ip_protocol_t * protocol, ip_ttl_t * ttl, ip_tos_t * tos, int * dont_fragment, size_t * ipopt_length );
50
int ip_client_process_packet( packet_t packet, ip_protocol_t * protocol, ip_ttl_t * ttl, ip_tos_t * tos, int * dont_fragment, size_t * ipopt_length );
49
 
51
 
Line 52... Line 54...
52
 *  @returns The IP header length in bytes.
54
 *  @returns The IP header length in bytes.
53
 *  @returns Zero (0) if there is no IP header.
55
 *  @returns Zero (0) if there is no IP header.
54
 */
56
 */
55
size_t  ip_client_header_length( packet_t packet );
57
size_t  ip_client_header_length( packet_t packet );
56
 
58
 
-
 
59
/** \todo
-
 
60
 */
-
 
61
int ip_client_set_pseudo_header_data_length( ip_pseudo_header_ref header, size_t headerlen, size_t data_length );
-
 
62
 
-
 
63
/** \todo
-
 
64
 */
-
 
65
int ip_client_get_pseudo_header( ip_protocol_t protocol, struct sockaddr * src, socklen_t srclen, struct sockaddr * dest, socklen_t destlen, size_t data_length, ip_pseudo_header_ref * header, size_t * headerlen );
-
 
66
 
57
// TODO ipopt manipulation
67
// TODO ipopt manipulation
58
 
68
 
59
#endif
69
#endif
60
 
70
 
61
/** @}
71
/** @}