Changeset 7719958 in mainline for uspace/srv/net/udp/assoc.h
- Timestamp:
- 2012-04-23T22:51:36Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6a3808e
- Parents:
- 3293a94 (diff), 32fef47 (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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/assoc.h
r3293a94 r7719958 1 1 /* 2 * Copyright (c) 20 09 Lukas Mejdrech2 * Copyright (c) 2012 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup libnet29 /** @addtogroup udp 30 30 * @{ 31 31 */ 32 33 /** @file 34 * Link service access point identifiers. 32 /** @file UDP associations 35 33 */ 36 34 37 #ifndef LIBNET_ETHERNET_LSAP_H_38 #define LIBNET_ETHERNET_LSAP_H_35 #ifndef ASSOC_H 36 #define ASSOC_H 39 37 40 38 #include <sys/types.h> 39 #include "udp_type.h" 41 40 42 /** Ethernet LSAP type definition. */ 43 typedef uint8_t eth_lsap_t; 41 extern udp_assoc_t *udp_assoc_new(udp_sock_t *, udp_sock_t *); 42 extern void udp_assoc_delete(udp_assoc_t *); 43 extern void udp_assoc_add(udp_assoc_t *); 44 extern void udp_assoc_remove(udp_assoc_t *); 45 extern void udp_assoc_addref(udp_assoc_t *); 46 extern void udp_assoc_delref(udp_assoc_t *); 47 extern void udp_assoc_set_foreign(udp_assoc_t *, udp_sock_t *); 48 extern void udp_assoc_set_local(udp_assoc_t *, udp_sock_t *); 49 extern int udp_assoc_send(udp_assoc_t *, udp_sock_t *, udp_msg_t *); 50 extern int udp_assoc_recv(udp_assoc_t *, udp_msg_t **, udp_sock_t *); 51 extern void udp_assoc_received(udp_sockpair_t *, udp_msg_t *); 44 52 45 /** @name Ethernet LSAP values definitions */46 /*@{*/47 48 /** Null LSAP LSAP identifier. */49 #define ETH_LSAP_NULL 0x0050 /** ARPANET Internet Protocol (IP) LSAP identifier. */51 #define ETH_LSAP_IP 0x0652 /** ARPANET Address Resolution Protocol (ARP) LSAP identifier. */53 #define ETH_LSAP_ARP 0x9854 /** SubNetwork Access Protocol (SNAP) LSAP identifier. */55 #define ETH_LSAP_SNAP 0xAA56 /** Global LSAP LSAP identifier. */57 #define ETH_LSAP_GLSAP 0xFF58 59 /*@}*/60 53 61 54 #endif
Note:
See TracChangeset
for help on using the changeset viewer.