Changeset 0773396 in mainline for uspace/lib/c/include/types/inet.h
- Timestamp:
- 2013-12-25T13:05:25Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bc54126c
- Parents:
- f4a47e52 (diff), 6946f23 (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/lib/c/include/types/inet.h
rf4a47e52 r0773396 1 1 /* 2 * Copyright (c) 20 09 Lukas Mejdrech2 * Copyright (c) 2012 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 30 30 * @{ 31 31 */ 32 33 32 /** @file 34 * Network device.35 33 */ 36 34 37 #ifndef LIBC_ NET_DEVICE_H_38 #define LIBC_ NET_DEVICE_H_35 #ifndef LIBC_TYPES_INET_H_ 36 #define LIBC_TYPES_INET_H_ 39 37 40 #include <adt/int_map.h> 41 #include <nic/nic.h> 38 #include <inet/addr.h> 39 #include <ipc/loc.h> 40 #include <sys/types.h> 42 41 43 /** Device identifier to generic type map declaration. */ 44 #define DEVICE_MAP_DECLARE INT_MAP_DECLARE 42 #define INET_TTL_MAX 255 45 43 46 /** Device identifier to generic type map implementation. */ 47 #define DEVICE_MAP_IMPLEMENT INT_MAP_IMPLEMENT 44 typedef struct { 45 /** Local IP link service ID (optional) */ 46 service_id_t iplink; 47 inet_addr_t src; 48 inet_addr_t dest; 49 uint8_t tos; 50 void *data; 51 size_t size; 52 } inet_dgram_t; 48 53 49 /** Device identifier type. */ 50 typedef int nic_device_id_t; 54 typedef struct { 55 int (*recv)(inet_dgram_t *); 56 } inet_ev_ops_t; 51 57 52 /** Invalid device identifier. */ 53 #define NIC_DEVICE_INVALID_ID (-1) 58 typedef enum { 59 INET_DF = 1 60 } inet_df_t; 54 61 55 62 #endif
Note:
See TracChangeset
for help on using the changeset viewer.