All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Craig <philipc@snapgear.com>
To: netfilter-devel <netfilter-devel@lists.netfilter.org>
Subject: [PATCH] NAT PPTP Set-Link-Info
Date: Tue, 26 Jul 2005 14:29:22 +1000	[thread overview]
Message-ID: <42E5BC22.2030303@snapgear.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 314 bytes --]

NAT PPTP Set-Link-Info messages in the PAC->PNS direction.
These are sent by Windows Server 2003.

Note that Set-Link-Info messages do not need to be NATed in the
PNS->PAC direction, since we never NAT the PAC call id.

Tested for linux-2.4.29 only, but should also apply to both 2.6
versions in patch-o-matic-ng.

[-- Attachment #2: pptp-set-link-info.patch --]
[-- Type: text/plain, Size: 462 bytes --]

Index: linux/net/ipv4/netfilter/ip_nat_pptp.c
===================================================================
--- linux/net/ipv4/netfilter/ip_nat_pptp.c	(revision 4151)
+++ linux/net/ipv4/netfilter/ip_nat_pptp.c	(working copy)
@@ -324,6 +324,9 @@
 	case PPTP_CALL_DISCONNECT_NOTIFY:
 		pcid = &pptpReq.disc->callID;
 		break;
+	case PPTP_SET_LINK_INFO:
+		pcid = &pptpReq.setlink->peersCallID;
+		break;
 
 	default:
 		DEBUGP("unknown inbound packet %s\n",

             reply	other threads:[~2005-07-26  4:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-26  4:29 Philip Craig [this message]
2005-08-12 13:58 ` [PATCH] NAT PPTP Set-Link-Info Harald Welte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42E5BC22.2030303@snapgear.com \
    --to=philipc@snapgear.com \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.