Changeset 849ed54 in mainline for uspace/lib/net/include/ip_client.h
- Timestamp:
- 2010-03-30T18:39:04Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7553689
- Parents:
- 7d6fe4db
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/include/ip_client.h
r7d6fe4db r849ed54 40 40 #include <sys/types.h> 41 41 42 #include "../structures/packet/packet.h" 43 44 #include "ip_codes.h" 45 #include "ip_interface.h" 46 #include "socket_codes.h" 42 #include <packet/packet.h> 43 #include <ip_codes.h> 44 #include <ip_interface.h> 45 #include <socket_codes.h> 47 46 48 47 /** Prepares the packet to be transfered via IP. … … 57 56 * @returns ENOMEM if there is not enough memory left in the packet. 58 57 */ 59 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);58 extern 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); 60 59 61 60 /** Processes the received IP packet. … … 71 70 * @returns ENOMEM if the packet is too short to contain the IP header. 72 71 */ 73 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);72 extern 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); 74 73 75 74 /** Returns the IP header length. … … 78 77 * @returns Zero (0) if there is no IP header. 79 78 */ 80 size_t ip_client_header_length(packet_t packet);79 extern size_t ip_client_header_length(packet_t packet); 81 80 82 81 /** Updates the IPv4 pseudo header data length field. … … 88 87 * @returns EINVAL if the headerlen parameter is not IPv4 pseudo header length. 89 88 */ 90 int ip_client_set_pseudo_header_data_length(ip_pseudo_header_ref header, size_t headerlen, size_t data_length);89 extern int ip_client_set_pseudo_header_data_length(ip_pseudo_header_ref header, size_t headerlen, size_t data_length); 91 90 92 91 /** Constructs the IPv4 pseudo header. … … 108 107 * @returns ENOMEM if there is not enough memory left. 109 108 */ 110 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);109 extern 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); 111 110 112 111 // TODO ipopt manipulation
Note:
See TracChangeset
for help on using the changeset viewer.