From: Slava Dubrovskiy <slava@tangramltd.com>
To: Vladimir Karpinsky <vkarpinsky@mail.ru>,
ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] Проверка по regexp вхождения IP в подсеть
Date: Tue, 19 Feb 2008 16:42:29 +0200
Message-ID: <47BAEAD5.1070204@tangramltd.com> (raw)
In-Reply-To: <47BAE521.3090702@mail.ru>
[-- Attachment #1: Type: text/plain, Size: 734 bytes --]
Vladimir Karpinsky пишет:
> Slava Dubrovskiy пишет:
>> Подскажите пожалуйста, как проверить с помощью regexp входит ли IP в
>> подсеть?
>>
>> Например: сеть дана в виде 192.168.1.0/24
>> Как проверить при помощи regexp входит ли IP 192.168.1.5 в эту подсеть?
> ipcalc и его man
Это конечно хорошо. Есть и перловый модуль Net-IP-Match-Regexp. Но у
меня есть база, в которой хранятся IP в виде 192.168.1.0/24 и нужно sql
запросом проверять вхождение IP в сеть.
--
WBR,
Dubrovskiy Vyacheslav
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3249 bytes --]
next prev parent reply other threads:[~2008-02-19 14:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-19 14:06 Slava Dubrovskiy
2008-02-19 14:18 ` Vladimir Karpinsky
2008-02-19 14:42 ` Slava Dubrovskiy [this message]
2008-02-19 15:30 ` Alexey Morsov
2008-02-19 15:40 ` Алексей Шенцев
2008-02-20 7:53 ` Slava Dubrovskiy
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=47BAEAD5.1070204@tangramltd.com \
--to=slava@tangramltd.com \
--cc=community@lists.altlinux.org \
--cc=vkarpinsky@mail.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git