From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Kevin Cernekee <cernekee@chromium.org>
Cc: ashley.hughes@blueyonder.co.uk, mnissler@google.com,
netfilter-devel@vger.kernel.org
Subject: Re: [PATCH V2 conntrack-tools] conntrackd: cthelper: ssdp: Track UPnP eventing
Date: Sun, 12 Feb 2017 15:05:32 +0100 [thread overview]
Message-ID: <20170212140532.GA5528@salvia> (raw)
In-Reply-To: <20170105214220.35549-1-cernekee@chromium.org>
On Thu, Jan 05, 2017 at 01:42:20PM -0800, Kevin Cernekee wrote:
> The UPnP Device Architecture spec provides a way for devices to connect
> back to control points, called "Eventing" (chapter 4). This sequence can
> look something like:
>
> 1) Outbound multicast M-SEARCH packet (dst: 1900/udp)
> - Create expectation for unicast reply from <any host> to source port
>
> 2) Inbound unicast reply (there may be several of these from different devices)
> - Find the device's URL, e.g.
> LOCATION: http://192.168.1.123:1400/xml/device_description.xml
> - Create expectation to track connections to this host:port (tcp)
>
> 3) Outbound connection to device's web server (there will be several of these)
> - Watch for a SUBSCRIBE request
> - Find the control point's callback URL, e.g.
> CALLBACK: <http://192.168.1.124:3500/notify>
> - Create expectation to open up inbound connections to this host:port
>
> 4) Inbound connections to control point's web server
> - The device will send NOTIFY HTTP requests to inform the control point
> of new events. These can continue indefinitely. Each NOTIFY
> request arrives on a new TCP connection and may have a different
> source port.
>
> Add the necessary code to create expectations for each of these
> connections and rewrite the IP in the CALLBACK URL. Tested with and
> without NAT.
I'm going to place this in the tree. Just follow up with fixes if
required.
Thanks Kevin.
prev parent reply other threads:[~2017-02-12 14:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-05 21:42 [PATCH V2 conntrack-tools] conntrackd: cthelper: ssdp: Track UPnP eventing Kevin Cernekee
2017-01-05 22:14 ` Kevin Cernekee
2017-02-12 14:05 ` Pablo Neira Ayuso [this message]
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=20170212140532.GA5528@salvia \
--to=pablo@netfilter.org \
--cc=ashley.hughes@blueyonder.co.uk \
--cc=cernekee@chromium.org \
--cc=mnissler@google.com \
--cc=netfilter-devel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).