Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Bernd Paysan
net2o
Commits
6ca7f7e8
Commit
6ca7f7e8
authored
May 01, 2017
by
bernd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename p+ to pathc+
parent
34a77a2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
net2o-ip.fs
net2o-ip.fs
+2
-2
net2o-socks.fs
net2o-socks.fs
+1
-1
No files found.
net2o-ip.fs
View file @
6ca7f7e8
...
...
@@ -299,13 +299,13 @@ Forward !my-addr ( -- )
nat( ticks .ticks ."
ping
:
" 2dup .address cr )
2>r net2o-sock "
>
" 0 2r> sendto drop ;
: p+ ( addr u -- addr' u' )
: p
athc
+ ( addr u -- addr' u' )
BEGIN dup WHILE over c@ $80 < >r 1 /string r> UNTIL THEN ;
: .addr-path ( addr -- )
dup be@ routes #.key dup 0= IF drop $10 xtype ELSE
$@ .address
$10 p+ 0 -skip dup IF '|' emit THEN xtype THEN ;
$10 p
athc
+ 0 -skip dup IF '|' emit THEN xtype THEN ;
\
Create udp socket
...
...
net2o-socks.fs
View file @
6ca7f7e8
...
...
@@ -204,7 +204,7 @@ Variable lastn2oaddr
path
r
>
plen
move
;
:
skip
-
dest
(
addr
--
)
$
10
2
dup
0
scan
nip
-
2
dup
p
+
{
addr1
u1
addr2
u2
}
\
better
use
locals
here
2
dup
p
athc
+
{
addr1
u1
addr2
u2
}
\
better
use
locals
here
addr2
addr1
u2
move
addr1
u1
u2
/
string
erase
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment