Changeset 0a866eeb in mainline
- Timestamp:
- 2010-10-08T19:45:11Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c69d327
- Parents:
- d52fbaf
- Location:
- uspace
- Files:
-
- 1 added
- 24 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/Makefile
rd52fbaf r0a866eeb 35 35 generic/net_remote.c \ 36 36 generic/net_checksum.c \ 37 generic/packet_client.c \ 37 38 generic/packet_remote.c \ 39 generic/socket_core.c \ 38 40 adt/module_map.c \ 39 41 netif/netif_local.c \ -
uspace/lib/net/generic/packet_client.c
rd52fbaf r0a866eeb 41 41 #include <sys/mman.h> 42 42 43 #include <packet_client.h> 44 43 45 #include <net_messages.h> 44 46 #include <packet/packet.h> 45 47 #include <packet/packet_header.h> 46 #include <packet/packet_client.h>47 48 48 49 int packet_copy_data(packet_t packet, const void * data, size_t length) … … 181 182 182 183 // get a new packet 183 copy = packet_get_4_ local(phone, PACKET_DATA_LENGTH(packet),184 copy = packet_get_4_remote(phone, PACKET_DATA_LENGTH(packet), 184 185 PACKET_MAX_ADDRESS_LENGTH(packet), packet->max_prefix, 185 186 PACKET_MIN_SUFFIX(packet)); … … 199 200 return copy; 200 201 } else { 201 pq_release_ local(phone, copy->packet_id);202 pq_release_remote(phone, copy->packet_id); 202 203 return NULL; 203 204 } -
uspace/lib/net/generic/packet_remote.c
rd52fbaf r0a866eeb 44 44 45 45 #include <net_messages.h> 46 #include <packet_client.h> 47 #include <packet_remote.h> 48 46 49 #include <packet/packet.h> 47 #include <packet/packet_client.h>48 50 #include <packet/packet_header.h> 49 #include <packet_remote.h>50 51 51 52 /** Obtain the packet from the packet server as the shared memory block. -
uspace/lib/net/generic/socket_core.c
rd52fbaf r0a866eeb 47 47 #include <adt/int_map.h> 48 48 #include <packet/packet.h> 49 #include <packet/packet_client.h> 49 #include <packet_client.h> 50 #include <packet_remote.h> 50 51 #include <net/modules.h> 51 52 #include <socket_core.h> … … 91 92 // release all received packets 92 93 while((packet_id = dyn_fifo_pop(&socket->received)) >= 0){ 93 pq_release_ local(packet_phone, packet_id);94 pq_release_remote(packet_phone, packet_id); 94 95 } 95 96 dyn_fifo_destroy(&socket->received); -
uspace/lib/net/il/ip_client.c
rd52fbaf r0a866eeb 40 40 41 41 #include <ip_client.h> 42 #include <packet_client.h> 43 #include <ip_header.h> 44 42 45 #include <packet/packet.h> 43 #include <packet/packet_client.h>44 #include <ip_header.h>45 46 46 47 size_t ip_client_header_length(packet_t packet){ -
uspace/lib/net/il/ip_remote.c
rd52fbaf r0a866eeb 47 47 #include <net/inet.h> 48 48 #include <ip_interface.h> 49 #include <packet /packet_client.h>49 #include <packet_client.h> 50 50 #include <il_messages.h> 51 51 #include <ip_messages.h> -
uspace/lib/net/include/il_interface.h
rd52fbaf r0a866eeb 46 46 #include <net_device.h> 47 47 #include <packet/packet.h> 48 #include <packet /packet_client.h>48 #include <packet_client.h> 49 49 #include <il_messages.h> 50 50 -
uspace/lib/net/include/netif_interface.h
rd52fbaf r0a866eeb 53 53 54 54 #include <netif_remote.h> 55 #include <packet /packet_client.h>55 #include <packet_client.h> 56 56 57 57 #define netif_module_message netif_module_message_standalone -
uspace/lib/net/include/packet_client.h
rd52fbaf r0a866eeb 172 172 * @returns Other error codes as defined for the packet_return() function. 173 173 */ 174 extern int packet_translate_ local(int phone, packet_ref packet, packet_id_t packet_id);174 extern int packet_translate_remote(int phone, packet_ref packet, packet_id_t packet_id); 175 175 176 176 /** Obtains the packet of the given dimensions. … … 184 184 * @returns NULL on error. 185 185 */ 186 extern packet_t packet_get_4_ local(int phone, size_t max_content, size_t addr_len, size_t max_prefix, size_t max_suffix);186 extern packet_t packet_get_4_remote(int phone, size_t max_content, size_t addr_len, size_t max_prefix, size_t max_suffix); 187 187 188 188 /** Obtains the packet of the given content size. … … 193 193 * @returns NULL on error. 194 194 */ 195 extern packet_t packet_get_1_ local(int phone, size_t content);195 extern packet_t packet_get_1_remote(int phone, size_t content); 196 196 197 197 /** Releases the packet queue. … … 202 202 * @param[in] packet_id The packet identifier. 203 203 */ 204 extern void pq_release_ local(int phone, packet_id_t packet_id);204 extern void pq_release_remote(int phone, packet_id_t packet_id); 205 205 206 206 /** Returns the packet copy. -
uspace/lib/net/include/tl_interface.h
rd52fbaf r0a866eeb 44 44 #include <net_device.h> 45 45 #include <packet/packet.h> 46 #include <packet /packet_client.h>46 #include <packet_client.h> 47 47 #include <tl_messages.h> 48 48 -
uspace/lib/net/netif/netif_local.c
rd52fbaf r0a866eeb 47 47 #include <net/modules.h> 48 48 #include <packet/packet.h> 49 #include <packet /packet_client.h>49 #include <packet_client.h> 50 50 #include <packet/packet_server.h> 51 51 #include <packet_remote.h> -
uspace/lib/net/netif/netif_remote.c
rd52fbaf r0a866eeb 40 40 #include <adt/measured_strings.h> 41 41 #include <packet/packet.h> 42 #include <packet /packet_client.h>42 #include <packet_client.h> 43 43 #include <net_device.h> 44 44 #include <netif_remote.h> -
uspace/lib/net/nil/nil_remote.c
rd52fbaf r0a866eeb 40 40 #include <nil_interface.h> 41 41 #include <packet/packet.h> 42 #include <packet /packet_client.h>42 #include <packet_client.h> 43 43 #include <nil_messages.h> 44 44 #include <nil_remote.h> -
uspace/lib/net/tl/icmp_client.c
rd52fbaf r0a866eeb 46 46 #include <icmp_client.h> 47 47 #include <packet/packet.h> 48 #include <packet /packet_client.h>48 #include <packet_client.h> 49 49 #include <icmp_header.h> 50 50 -
uspace/lib/net/tl/icmp_remote.c
rd52fbaf r0a866eeb 45 45 #include <net/modules.h> 46 46 #include <icmp_interface.h> 47 #include <packet /packet_client.h>47 #include <packet_client.h> 48 48 #include <icmp_messages.h> 49 49 -
uspace/lib/net/tl/tl_common.c
rd52fbaf r0a866eeb 46 46 47 47 #include <packet/packet.h> 48 #include <packet /packet_client.h>48 #include <packet_client.h> 49 49 #include <packet_remote.h> 50 50 #include <net_device.h> -
uspace/lib/socket/Makefile
rd52fbaf r0a866eeb 33 33 34 34 SOURCES = \ 35 generic/socket_core.c \36 35 generic/icmp_common.c \ 37 36 generic/icmp_api.c \ 38 37 packet/packet.c \ 39 packet/packet_client.c \40 38 packet/packet_server.c 41 39 -
uspace/lib/socket/packet/packet_server.c
rd52fbaf r0a866eeb 49 49 #include <net_messages.h> 50 50 #include <packet/packet.h> 51 #include <packet/packet_ client.h>51 #include <packet/packet_local.h> 52 52 #include <packet/packet_header.h> 53 53 #include <packet/packet_server.h> -
uspace/srv/hw/netif/dp8390/dp8390.c
rd52fbaf r0a866eeb 39 39 #include <netif_local.h> 40 40 #include <packet/packet.h> 41 #include <packet /packet_client.h>41 #include <packet_client.h> 42 42 43 43 #include "dp8390_drv.h" -
uspace/srv/hw/netif/dp8390/dp8390_module.c
rd52fbaf r0a866eeb 46 46 #include <net_messages.h> 47 47 #include <net/modules.h> 48 #include <packet /packet_client.h>48 #include <packet_client.h> 49 49 #include <adt/measured_strings.h> 50 50 #include <net_device.h> -
uspace/srv/net/il/arp/arp.c
rd52fbaf r0a866eeb 56 56 #include <adt/measured_strings.h> 57 57 #include <packet/packet.h> 58 #include <packet /packet_client.h>58 #include <packet_client.h> 59 59 #include <packet_remote.h> 60 60 #include <il_messages.h> -
uspace/srv/net/il/ip/ip.c
rd52fbaf r0a866eeb 68 68 #include <adt/measured_strings.h> 69 69 #include <adt/module_map.h> 70 #include <packet /packet_client.h>70 #include <packet_client.h> 71 71 #include <packet_remote.h> 72 72 #include <nil_messages.h> -
uspace/srv/net/netif/lo/lo.c
rd52fbaf r0a866eeb 47 47 #include <net/modules.h> 48 48 #include <adt/measured_strings.h> 49 #include <packet /packet_client.h>49 #include <packet_client.h> 50 50 #include <net_device.h> 51 51 #include <nil_interface.h> -
uspace/srv/net/nil/eth/eth.c
rd52fbaf r0a866eeb 59 59 #include <il_interface.h> 60 60 #include <adt/measured_strings.h> 61 #include <packet /packet_client.h>61 #include <packet_client.h> 62 62 #include <packet_remote.h> 63 63 #include <nil_local.h> -
uspace/srv/net/tl/icmp/icmp.c
rd52fbaf r0a866eeb 56 56 #include <net_messages.h> 57 57 #include <net/modules.h> 58 #include <packet /packet_client.h>58 #include <packet_client.h> 59 59 #include <packet_remote.h> 60 60 #include <net_checksum.h> -
uspace/srv/net/tl/tcp/tcp.c
rd52fbaf r0a866eeb 58 58 #include <net_messages.h> 59 59 #include <adt/dynamic_fifo.h> 60 #include <packet /packet_client.h>60 #include <packet_client.h> 61 61 #include <packet_remote.h> 62 62 #include <net_checksum.h> -
uspace/srv/net/tl/udp/udp.c
rd52fbaf r0a866eeb 55 55 #include <net_messages.h> 56 56 #include <adt/dynamic_fifo.h> 57 #include <packet /packet_client.h>57 #include <packet_client.h> 58 58 #include <packet_remote.h> 59 59 #include <net_checksum.h>
Note:
See TracChangeset
for help on using the changeset viewer.