-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO
91 lines (74 loc) · 2.78 KB
/
TODO
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#=====================================
tftp client should work with old servers
(without support for option neogation!)
#=====================================
clausklein$ grep -wi --color TODO */*.c
common/common.c: /* TODO: jsynacek: I don't think any conversion should take place...
common/tftpsubs.c: Todo: add some sort of final error check so when the write-buffer
tftp/tftp.c: off_t tsize = get_tsize(fd); // TODO only useable for mode == "octet" ! CK
tftp/tftp.c: int v = atoi(val); // TODO Use strtoul() or strtoumax()
tftp/tftp.c: int v = atoi(val); // TODO Use strtoul(() or strtoumax()
tftp/tftp.c: /* TODO: Change the statistics in a separate patch (bits???)! */
tftpd/tftpd.c: /* TODO: warning: 'daemon' is deprecated on OSX; Use posix_spawn APIs instead! CK */
clausklein$
#=====================================
max data segment size seems to be 9212!
9212 + 4 0= 9K (OSX only!)
#=====================================
clausklein$ time tftp/tftp -m binary -v -B 1432 -w 1 localhost -c get tftp.bin
Connected to localhost (::1), port 69
getting from localhost:tftp.bin to tftp.bin [octet]
option request tsize:0
client: server negotiated tsize: 46528
Received 46528 bytes in 0.1 seconds
[3140145 bit/s]
real 0m0.140s
user 0m0.003s
sys 0m0.009s
#####################################
clausklein$ time tftp/tftp -m binary -v -B 1432 -w 1 localhost -c get tftp.bin
Connected to localhost (::1), port 69
getting from localhost:tftp.bin to tftp.bin [octet]
option request tsize:0
client: server negotiated tsize: 46528
Received 46528 bytes in 0.1 seconds
[3133697 bit/s]
real 0m0.140s
user 0m0.003s
sys 0m0.008s
#####################################
clausklein$ time tftp/tftp -m binary -v -B 8184 -w 1 localhost -c get tftp.bin
Connected to localhost (::1), port 69
getting from localhost:tftp.bin to tftp.bin [octet]
option request tsize:0
client: server negotiated tsize: 46528
Received 46528 bytes in 0.1 seconds
[3107952 bit/s]
real 0m0.142s
user 0m0.003s
sys 0m0.007s
clausklein$
#####################################
clausklein$ time tftp/tftp -m binary -v -B 9212 -w 1 localhost -c get tftp.bin
Connected to localhost (::1), port 69
getting from localhost:tftp.bin to tftp.bin [octet]
option request tsize:0
client: server negotiated tsize: 46528
Received 46528 bytes in 0.1 seconds
[3307222 bit/s]
real 0m0.134s
user 0m0.003s
sys 0m0.008s
clausklein$
#####################################
clausklein$ time tftp/tftp -m binary -v -B 16374 -w 1 localhost -c get tftp.bin
Connected to localhost (::1), port 69
getting from localhost:tftp.bin to tftp.bin [octet]
option request tsize:0
client: server negotiated tsize: 46528
???d? <<<<<<<<<<<<<<<<<< FIXME!
real 0m5.041s <<<timeout! CK
user 0m0.003s
sys 0m0.008s
clausklein$ ls -lrta *.bin
-rw-r--r-- 1 clausklein staff 0 8. Dez 13:33 tftp.bin