Account name:
Password
(OpenID?)
(Forgot it?)
Remember Me
You're viewing
metaclass
's journal
Create a Dreamwidth Account
Learn More
Interest
Region
Site and Account
FAQ
Email
Reload page in style:
site
light
IT-redneck
IPv6 или "День псоглавца"
IPv6 или "День псоглавца"
Feb
.
19th
,
2013
07:26 pm
metaclass
Понял, что не знаю, как отличить валидный ipv6 адрес от невалидного, как отделить адрес с портом от адреса без порта и как проверять правильность и доступность адресов :)
Flat
|
Top-Level Comments Only
no subject
Date:
2013-02-21 10:43 am (UTC)
From:
vp.livejournal.com
>> как отличить валидный ipv6 адрес от невалидного
>if (inet_pton(...) != 1) { fail(); }
Имелось ввиду проверить глазами :)
А функцию inet_pton пидорасы делали, однозначно. За функции, которые возвращают минус, ноль или плюс нужно отрывать ноги по самые гланды.
no subject
Date:
2013-02-21 10:47 am (UTC)
From:
ihar hrachyshka
(from livejournal.com)
> А функцию inet_pton пидорасы делали, однозначно
Таки да: http://en.wikipedia.org/wiki/Marshall_Kirk_McKusick
23 comments
Reply
Flat
|
Top-Level Comments Only
Profile
metaclass
Recent Entries
Archive
Reading
Tags
Memories
Profile
April
2017
S
M
T
W
T
F
S
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Most Popular Tags
.net
-
1 use
2.0
-
1 use
ado.net
-
1 use
algebraic datatypes
-
1 use
attoparsec
-
2 uses
blowfish
-
1 use
bouncycastle
-
1 use
casket
-
1 use
cityinfo
-
1 use
clojure
-
17 uses
code generation
-
1 use
dbms
-
6 uses
enumerator
-
1 use
errort e io a
-
1 use
f#
-
12 uses
firebird
-
3 uses
fp
-
57 uses
fpv
-
1 use
golang
-
1 use
haskel
-
1 use
haskell
-
10 uses
iteratees
-
2 uses
java
-
4 uses
mcrypt_mode_cfb
-
1 use
metaprogramming
-
3 uses
orm
-
1 use
profiling
-
1 use
python
-
2 uses
rdbms
-
3 uses
records
-
2 uses
scala
-
11 uses
silver bullet
-
1 use
special-enterprise-olympics
-
5 uses
spray
-
1 use
sql
-
3 uses
static typing
-
1 use
structural typing
-
1 use
tools abuse
-
1 use
ugly death
-
1 use
бабы
-
1 use
гарэлка
-
1 use
кароўнікі
-
1 use
кодогенератор
-
1 use
кодогенерация
-
2 uses
опердень
-
3 uses
павукi.
-
1 use
пекла
-
1 use
платы
-
1 use
рапухi
-
1 use
чарвякi
-
1 use
Page Summary
vp.livejournal.com
-
(no subject)
Style Credit
Style:
Neutral Good
for
Practicality
by
timeasmymeasure
Expand Cut Tags
No cut tags
Page generated Dec. 2nd, 2025 03:08 pm
Powered by
Dreamwidth Studios
no subject
Date: 2013-02-21 10:43 am (UTC)>if (inet_pton(...) != 1) { fail(); }
Имелось ввиду проверить глазами :)
А функцию inet_pton пидорасы делали, однозначно. За функции, которые возвращают минус, ноль или плюс нужно отрывать ноги по самые гланды.
no subject
Date: 2013-02-21 10:47 am (UTC)Таки да: http://en.wikipedia.org/wiki/Marshall_Kirk_McKusick