Changeset 6843a9c in mainline for uspace/srv/net/tcp/segment.h
- Timestamp:
- 2012-06-29T13:02:14Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 722912e
- Parents:
- ba72f2b (diff), 0bbd13e (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/tcp/segment.h
rba72f2b r6843a9c 1 1 /* 2 * Copyright (c) 20 09 Lukas Mejdrech2 * Copyright (c) 2011 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup libnet29 /** @addtogroup tcp 30 30 * @{ 31 31 */ 32 33 /** @file 34 * Ethernet protocol numbers according to the on-line IANA - Ethernet numbers 35 * http://www.iana.org/assignments/ethernet-numbers 36 * cited January 17 2009. 32 /** @file Segment processing 37 33 */ 38 34 39 #ifndef LIBNET_ETHERNET_PROTOCOLS_H_40 #define LIBNET_ETHERNET_PROTOCOLS_H_35 #ifndef SEGMENT_H 36 #define SEGMENT_H 41 37 42 38 #include <sys/types.h> 39 #include "tcp_type.h" 43 40 44 /** Ethernet protocol type definition. */ 45 typedef uint16_t eth_type_t; 41 extern tcp_segment_t *tcp_segment_new(void); 42 extern void tcp_segment_delete(tcp_segment_t *); 43 extern tcp_segment_t *tcp_segment_dup(tcp_segment_t *); 44 extern tcp_segment_t *tcp_segment_make_ctrl(tcp_control_t); 45 extern tcp_segment_t *tcp_segment_make_rst(tcp_segment_t *); 46 extern tcp_segment_t *tcp_segment_make_data(tcp_control_t, void *, size_t); 47 extern void tcp_segment_trim(tcp_segment_t *, uint32_t, uint32_t); 48 extern void tcp_segment_text_copy(tcp_segment_t *, void *, size_t); 49 extern size_t tcp_segment_text_size(tcp_segment_t *); 50 extern void tcp_segment_dump(tcp_segment_t *); 46 51 47 /** @name Ethernet protocols definitions */48 /*@{*/49 52 50 /** Ethernet minimal protocol number.51 * According to the IEEE 802.3 specification.52 */53 #define ETH_MIN_PROTO 0x0600 /* 1536 */54 55 /** Internet IP (IPv4) ethernet protocol type. */56 #define ETH_P_IP 0x080057 58 /** ARP ethernet protocol type. */59 #define ETH_P_ARP 0x080660 61 /*@}*/62 53 63 54 #endif
Note:
See TracChangeset
for help on using the changeset viewer.