mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Aallow ppp to work with Nortel Networks Extranet Switch
product and Windows NT tunneling. Submitted by: Chain Lee <chain@nortelnetworks.com>
This commit is contained in:
parent
cdd53d9ce9
commit
7765ab6476
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50194
@ -95,6 +95,8 @@
|
||||
|
||||
#ifndef IPPROTO_GRE
|
||||
#define IPPROTO_GRE 47
|
||||
#define IPPROTO_ESP 50
|
||||
#define IPPROTO_AH 51
|
||||
#endif
|
||||
|
||||
#include "alias_local.h"
|
||||
@ -1206,6 +1208,8 @@ PacketAliasIn(char *ptr, int maxpacketsize)
|
||||
iresult = TcpAliasIn(pip);
|
||||
break;
|
||||
case IPPROTO_GRE:
|
||||
case IPPROTO_ESP:
|
||||
case IPPROTO_AH:
|
||||
iresult = PptpAliasIn(pip);
|
||||
break;
|
||||
}
|
||||
@ -1312,6 +1316,8 @@ PacketAliasOut(char *ptr, /* valid IP packet */
|
||||
iresult = TcpAliasOut(pip, maxpacketsize);
|
||||
break;
|
||||
case IPPROTO_GRE:
|
||||
case IPPROTO_ESP:
|
||||
case IPPROTO_AH:
|
||||
iresult = PptpAliasOut(pip);
|
||||
break;
|
||||
}
|
||||
|
@ -95,6 +95,8 @@
|
||||
|
||||
#ifndef IPPROTO_GRE
|
||||
#define IPPROTO_GRE 47
|
||||
#define IPPROTO_ESP 50
|
||||
#define IPPROTO_AH 51
|
||||
#endif
|
||||
|
||||
#include "alias_local.h"
|
||||
@ -1206,6 +1208,8 @@ PacketAliasIn(char *ptr, int maxpacketsize)
|
||||
iresult = TcpAliasIn(pip);
|
||||
break;
|
||||
case IPPROTO_GRE:
|
||||
case IPPROTO_ESP:
|
||||
case IPPROTO_AH:
|
||||
iresult = PptpAliasIn(pip);
|
||||
break;
|
||||
}
|
||||
@ -1312,6 +1316,8 @@ PacketAliasOut(char *ptr, /* valid IP packet */
|
||||
iresult = TcpAliasOut(pip, maxpacketsize);
|
||||
break;
|
||||
case IPPROTO_GRE:
|
||||
case IPPROTO_ESP:
|
||||
case IPPROTO_AH:
|
||||
iresult = PptpAliasOut(pip);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user