-
Notifications
You must be signed in to change notification settings - Fork 133
/
tcpconst.h
49 lines (47 loc) · 1.85 KB
/
tcpconst.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* =====================================================================================
*
* Filename: tcpconst.h
*
* Description: This file defines all standard Constants used by TCPIP stack
*
* Version: 1.0
* Created: Tuesday 24 September 2019 01:09:27 IST
* Revision: 1.0
* Compiler: gcc
*
* Author: Er. Abhishek Sagar, Networking Developer (AS), sachinites@gmail.com
* Company: Brocade Communications(Jul 2012- Mar 2016), Current : Juniper Networks(Apr 2017 - Present)
*
* This file is part of the NetworkGraph distribution (https://github.com/sachinites).
* Copyright (c) 2017 Abhishek Sagar.
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* =====================================================================================
*/
#ifndef __TCPCONST__
#define __TCPCONST__
/*Specified in ethernet_hdr->type*/
#define ARP_BROAD_REQ 1
#define ARP_REPLY 2
#define ARP_MSG 806
#define BROADCAST_MAC 0xFFFFFFFFFFFF
#define ETH_IP 0x0800
#define ICMP_PRO 1
#define ICMP_ECHO_REQ 8
#define ICMP_ECHO_REP 0
#define MTCP 20
#define USERAPP1 21
#define VLAN_8021Q_PROTO 0x8100
#define IP_IN_IP 4
#endif /* __TCPCONST__ */