Changeset f14291b in mainline for uspace/lib/packet
- Timestamp:
- 2010-10-19T20:55:53Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a93d79a
- Parents:
- 1882525 (diff), a7a85d16 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/packet
- Files:
-
- 1 added
- 8 moved
-
Makefile (moved) (moved from uspace/lib/socket/Makefile ) (1 diff)
-
generic/packet_server.c (moved) (moved from uspace/lib/socket/packet/packet_server.c ) (2 diffs)
-
include/net_byteorder.h (moved) (moved from uspace/lib/socket/include/net_byteorder.h )
-
include/net_err.h (moved) (moved from uspace/lib/socket/include/net_err.h )
-
include/netdb.h (moved) (moved from uspace/lib/socket/include/netdb.h )
-
include/packet_local.h (added)
-
include/packet_server.h (moved) (moved from uspace/lib/socket/include/packet/packet_server.h )
-
include/socket_errno.h (moved) (moved from uspace/lib/socket/include/socket_errno.h )
-
include/tcp_codes.h (moved) (moved from uspace/lib/socket/include/tcp_codes.h )
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/packet/Makefile
r1882525 rf14291b 30 30 USPACE_PREFIX = ../.. 31 31 EXTRA_CFLAGS = -Iinclude 32 LIBRARY = lib socket32 LIBRARY = libpacket 33 33 34 34 SOURCES = \ 35 generic/socket_client.c \ 36 generic/socket_core.c \ 37 generic/socket_parse.c \ 38 generic/inet.c \ 39 generic/net_modules.c \ 40 generic/icmp_common.c \ 41 generic/icmp_api.c \ 42 packet/packet.c \ 43 packet/packet_client.c \ 44 packet/packet_server.c \ 45 adt/dynamic_fifo.c \ 46 adt/measured_strings.c \ 47 adt/char_map.c 35 generic/packet_server.c 48 36 49 37 include $(USPACE_PREFIX)/Makefile.common -
uspace/lib/packet/generic/packet_server.c
r1882525 rf14291b 39 39 #include <async.h> 40 40 #include <errno.h> 41 #include <err.h> 41 42 #include <fibril_synch.h> 42 43 #include <unistd.h> 44 #include <sys/mman.h> 43 45 44 46 #include <ipc/ipc.h> 45 #include <sys/mman.h> 46 47 #include <net_err.h> 48 #include <net_messages.h> 49 #include <packet/packet.h> 50 #include <packet/packet_client.h> 51 #include <packet/packet_header.h> 52 #include <packet/packet_messages.h> 53 #include <packet/packet_server.h> 47 #include <ipc/packet.h> 48 #include <ipc/net.h> 49 50 #include <net/packet.h> 51 #include <net/packet_header.h> 52 53 #include <packet_server.h> 54 #include <packet_local.h> 54 55 55 56 #define FREE_QUEUES_COUNT 7 … … 85 86 unsigned int count; 86 87 } ps_globals = { 87 .lock = { 88 .counter = 1, 89 .waiters = { 90 .prev = &ps_globals.lock.waiters, 91 .next = &ps_globals.lock.waiters, 92 } 93 }, 88 .lock = FIBRIL_MUTEX_INITIALIZER(ps_globals.lock), 94 89 .free = {NULL, NULL, NULL, NULL, NULL, NULL, NULL}, 95 90 .sizes = {PAGE_SIZE, PAGE_SIZE * 2, PAGE_SIZE * 4, PAGE_SIZE * 8, PAGE_SIZE * 16, PAGE_SIZE * 32, PAGE_SIZE * 64},
Note:
See TracChangeset
for help on using the changeset viewer.
