All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: "Nix N. Nix" <nix@go-nix.ca>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Minor modification of function dcc_parse in ip_conntrack_irc.c
Date: Wed, 11 Aug 2004 15:29:01 +0200	[thread overview]
Message-ID: <411A1F1D.7080804@trash.net> (raw)
In-Reply-To: <1092170081.9955.12.camel@dana.go-nix.ca>

Nix N. Nix wrote:

>Hi!
>
>The dcc_parse function in ip_conntrack_irc.c has a shortcoming:
>
>\1DCC <command> <param> <ip> <port> [<size>]\1\n
>
>...is the format of a DCC command (where <size> is optional).
>
>dcc_parse is responsible for finding the ip and port in this string.  It
>gets the string starting at <param>.  Unfortunately, so far, dcc_parse
>assumed that <param> does not contain any spaces.  Thus, the module
>failed to track connections implied by a string of the form
>
>\1DCC SEND "The Big Movie.avi" 10289477 1011 37546262\1\n
>
>I have remedied this problem by having it check whether there's a double
>quote and, if so, loop on to the corresponding closing double quote
>before resuming normal processing:
>  
>
How do filenames which contain a quotation mark look ? I assume the 
quotation
marks is escaped ? We should also handle this case.

Regards
Patrick

  reply	other threads:[~2004-08-11 13:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-10 20:34 Minor modification of function dcc_parse in ip_conntrack_irc.c Nix N. Nix
2004-08-11 13:29 ` Patrick McHardy [this message]
2004-08-13 22:31   ` Nix N. Nix
2004-08-19 11:35     ` Harald Welte
2004-08-22 22:26       ` Nix N. Nix
2004-09-10 20:29         ` Nix N. Nix
2004-08-24 22:43       ` Nix N. Nix
2004-08-17 20:34   ` Nix N. Nix
2004-08-19 11:29     ` Harald Welte
2004-08-19 11:27 ` 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=411A1F1D.7080804@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=nix@go-nix.ca \
    /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.