This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
mtu.h
69 lines (57 loc) · 1.65 KB
/
mtu.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
p0f - MTU database
------------------
A list of known and used MTUs. Note: MSS is MTU-40 on a sane system.
Copyright (C) 2003-2006 by Michal Zalewski <lcamtuf@coredump.cx>
*/
#ifndef _HAVE_MTU_H
#define _HAVE_MTU_H
#include "types.h"
struct mtu_def {
_u16 mtu;
_u8* dev;
};
/* THIS LIST MUST BE SORTED FROM LOWEST TO HIGHEST MTU */
static struct mtu_def mtu[] = {
{ 256, "radio modem" },
{ 386, "ethernut" },
{ 552, "SLIP line / encap ppp" },
{ 576, "sometimes modem" },
{ 1280, "gif tunnel" },
{ 1300, "PIX, SMC, sometimes wireless" },
{ 1362, "sometimes DSL (1)" },
{ 1372, "cable modem" },
{ 1400, "(Google/AOL)" }, /* To be investigated */
{ 1415, "sometimes wireless" },
{ 1420, "GPRS, T1, FreeS/WAN" },
{ 1423, "sometimes cable" },
{ 1440, "sometimes DSL (2)" },
{ 1442, "IPIP tunnel" },
{ 1450, "vtun" },
{ 1452, "sometimes DSL (3)" },
{ 1454, "sometimes DSL (4)" },
{ 1456, "ISDN ppp" },
{ 1458, "BT DSL (?)" },
{ 1462, "sometimes DSL (5)" },
{ 1470, "(Google 2)" },
{ 1476, "IPSec/GRE" },
{ 1480, "IPv6/IPIP" },
{ 1492, "pppoe (DSL)" },
{ 1496, "vLAN" },
{ 1500, "ethernet/modem" },
{ 1656, "Ericsson HIS" },
{ 2024, "wireless/IrDA" },
{ 2048, "Cyclom X.25 WAN" },
{ 2250, "AiroNet wireless" },
{ 3924, "loopback" },
{ 4056, "token ring (1)" },
{ 4096, "Sangoma X.25 WAN" },
{ 4352, "FDDI" },
{ 4500, "token ring (2)" },
{ 9180, "FORE ATM" },
{ 16384, "sometimes loopback (1)" },
{ 16436, "sometimes loopback (2)" },
{ 18000, "token ring x4" },
};
#define MTU_CNT (sizeof(mtu) / sizeof(struct mtu_def))
#endif /* ! _HAVE_MTU_H */