Add qemu 2.4.0
[kvmfornfv.git] / qemu / roms / SLOF / clients / net-snk / app / netlib / tcp.h
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 #ifndef _TCP_H
14 #define _TCP_H
15
16 #include <stdint.h>
17
18 #define IPTYPE_TCP          6
19
20 /* Handles TCP-packets that are detected by any network layer. */
21 extern int8_t handle_tcp(uint8_t * udp_packet, int32_t packetsize);
22
23 /* Handles TCP related ICMP-Dest.Unreachable packets that are detected by
24  * the network layers. */
25 extern void handle_tcp_dun(uint8_t * tcp_packet, uint32_t packetsize, uint8_t err_code);
26
27 #endif