Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: ipt_string+udp...
Date: Mon, 23 Sep 2002 19:53:11 +0100	[thread overview]
Message-ID: <20020923185316.FDBL27185.mta03-svc.ntlworld.com@there> (raw)
In-Reply-To: <48364.66.46.161.131.1032804726.squirrel@www.funio.com>

On Monday 23 September 2002 7:12 pm, Mark Steele wrote:

> Doh!
>
> My bad, disregard the last post I sent. Removing the dot
> fixed the problem. Just to enlighten me a bit, what
> string would I use if I wanted to use the whole
> domain name?

It depends on the domain name you're trying to match.

Suppose you're looking up www.domain.org

There's a binary value immediately before each part of the name you're 
resolving (www, domain, and org), which is the number of characters in that 
part of the name.

Therefore in this case the string is: 0x03 w w w 0x06 d o m a i n 0x03 o r g

If you were resolving lists.netfilter.org it would be:
0x05 l i s t s 0x09 n e t f i l t e r 0x03 o r g

Antony.

-- 

Most people are aware that the Universe is big.

 - Paul Davies, Professor of Theoretical Physics


      reply	other threads:[~2002-09-23 18:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-23 18:12 ipt_string+udp Mark Steele
2002-09-23 18:53 ` Antony Stone [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=20020923185316.FDBL27185.mta03-svc.ntlworld.com@there \
    --to=antony@soft-solutions.co.uk \
    --cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox