repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Don't use .Xo/.Xc. Fix date format.
[netbsd-mini2440.git]
/
regress
/
lib
/
libc
/
inet
/
inet_network
/
inwtest
blob
00bd42c9287cd490db75f3c5efef56c6a443a154
1
# $NetBSD$
2
input: 0x12
3
result: 0x00000012
4
input: 127.1
5
result: 0x00007f01
6
input: 127.1.2.3
7
result: 0x7f010203
8
input: 0X12
9
result: 0x00000012
10
input: 0
11
result: 0x0
12
input: 01.02.07.077
13
result: 0x0102073f
14
input: 0x1.23.045.0
15
result: 0x01172500
16
input: 0x12.0x34
17
result: 0x00001234
18
# yes, this is valid (because of the trailing space after the digit)
19
input: 1 bar
20
result: 0x00000001
21
# malformed requests
22
input: 4.2.3.1.
23
result: 0xffffffff
24
input: 0x123456
25
result: 0xffffffff
26
input: 0x12.0x345
27
result: 0xffffffff
28
input: 1.2.3.4.5
29
result: 0xffffffff
30
input: 1..3.4
31
result: 0xffffffff
32
input: .
33
result: 0xffffffff
34
input: 1.
35
result: 0xffffffff
36
input: .1
37
result: 0xffffffff
38
input: 0x
39
result: 0xffffffff
40
input: ""
41
result: 0xffffffff
42
input: " "
43
input: bar
44
result: 0xffffffff
45
input: 1.2bar
46
result: 0xffffffff
47
input: 1.
48
result: 0xffffffff
49
input: \xc3\x8a\xc3\x83\xc3\x95\xc3\x8b\xc3\x85\xc3\x8e
50
result: 0xffffffff
51
input: 255.255.255.255
52
result: 0xffffffff
53
input: x
54
result: 0xffffffff
55
input: 078
56
result: 0xffffffff
57
input: 127.0xfff
58
result: 0xffffffff