|
|
1.1 root 1: /******************************************************************************
2: * Copyright (c) 2004, 2008 IBM Corporation
3: * All rights reserved.
4: * This program and the accompanying materials
5: * are made available under the terms of the BSD License
6: * which accompanies this distribution, and is available at
7: * http://www.opensource.org/licenses/bsd-license.php
8: *
9: * Contributors:
10: * IBM Corporation - initial implementation
11: *****************************************************************************/
12:
13: /*>>>>>>>>>>>>>>>>>>>>>>> DEFINITIONS & DECLARATIONS <<<<<<<<<<<<<<<<<<<<*/
14:
15: #include <tcp.h>
16: #include <sys/socket.h>
17:
18:
19: /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>> LOCAL VARIABLES <<<<<<<<<<<<<<<<<<<<<<<<<*/
20:
21: /*>>>>>>>>>>>>>>>>>>>>>>>>>>>>> IMPLEMENTATION <<<<<<<<<<<<<<<<<<<<<<<<<<*/
22:
23:
24: /**
25: * TCP: Handles TCP-packets according to Receive-handle diagram.
26: *
27: * @param tcp_packet TCP-packet to be handled
28: * @param packetsize Length of the packet
29: * @return ZERO - packet handled successfully;
30: * NON ZERO - packet was not handled (e.g. bad format)
31: */
32: int8_t
33: handle_tcp(uint8_t * tcp_packet, int32_t packetsize)
34: {
35: return -1;
36: }
37:
38:
39: /**
40: * NET: This function handles situation when "Destination unreachable"
41: * ICMP-error occurs during sending TCP-packet.
42: *
43: * @param err_code Error Code (e.g. "Host unreachable")
44: * @param packet original TCP-packet
45: * @param packetsize length of the packet
46: * @see handle_icmp
47: */
48: void
49: handle_tcp_dun(uint8_t * tcp_packet, uint32_t packetsize, uint8_t err_code) {
50: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.