Changeset 849ed54 in mainline for uspace/lib/net/include/tl_common.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/tl_common.h
r7d6fe4db r849ed54 38 38 #define __NET_TL_COMMON_H__ 39 39 40 #include "../structures/packet/packet.h" 41 42 #include "../include/device.h" 43 #include "../include/inet.h" 44 #include "../include/socket_codes.h" 40 #include <packet/packet.h> 41 #include <net_device.h> 42 #include <inet.h> 43 #include <socket_codes.h> 45 44 46 45 /** Device packet dimensions. … … 59 58 * @returns EAFNOSUPPORT if the address family is not supported. 60 59 */ 61 int tl_get_address_port(const struct sockaddr * addr, int addrlen, uint16_t * port);60 extern int tl_get_address_port(const struct sockaddr * addr, int addrlen, uint16_t * port); 62 61 63 62 /** Gets IP packet dimensions. … … 74 73 * @returns Other codes as defined for the ip_packet_size_req() function. 75 74 */ 76 int tl_get_ip_packet_dimension(int ip_phone, packet_dimensions_ref packet_dimensions, device_id_t device_id, packet_dimension_ref * packet_dimension);75 extern int tl_get_ip_packet_dimension(int ip_phone, packet_dimensions_ref packet_dimensions, device_id_t device_id, packet_dimension_ref * packet_dimension); 77 76 78 77 /** Updates IP device packet dimensions cache. … … 83 82 * @returns ENOENT if the packet dimension is not cached. 84 83 */ 85 int tl_update_ip_packet_dimension(packet_dimensions_ref packet_dimensions, device_id_t device_id, size_t content);84 extern int tl_update_ip_packet_dimension(packet_dimensions_ref packet_dimensions, device_id_t device_id, size_t content); 86 85 87 86 /** Sets the address port. … … 94 93 * @returns EAFNOSUPPORT if the address family is not supported. 95 94 */ 96 int tl_set_address_port(struct sockaddr * addr, int addrlen, uint16_t port);95 extern int tl_set_address_port(struct sockaddr * addr, int addrlen, uint16_t port); 97 96 98 97 /** Prepares the packet for ICMP error notification. … … 106 105 * @returns ENOENT if no packet may be sent. 107 106 */ 108 int tl_prepare_icmp_packet(int packet_phone, int icmp_phone, packet_t packet, services_t error);107 extern int tl_prepare_icmp_packet(int packet_phone, int icmp_phone, packet_t packet, services_t error); 109 108 110 109 /** Receives data from the socket into a packet. … … 120 119 * @returns Other error codes as defined for the async_data_read_finalize() function. 121 120 */ 122 int tl_socket_read_packet_data(int packet_phone, packet_ref packet, size_t prefix, const packet_dimension_ref dimension, const struct sockaddr * addr, socklen_t addrlen);121 extern int tl_socket_read_packet_data(int packet_phone, packet_ref packet, size_t prefix, const packet_dimension_ref dimension, const struct sockaddr * addr, socklen_t addrlen); 123 122 124 123 #endif
Note:
See TracChangeset
for help on using the changeset viewer.