Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
net2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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
Show 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 ( -- )
...
@@ -299,13 +299,13 @@ Forward !my-addr ( -- )
nat( ticks .ticks ."
ping
:
" 2dup .address cr )
nat( ticks .ticks ."
ping
:
" 2dup .address cr )
2>r net2o-sock "
>
" 0 2r> sendto drop ;
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 ;
BEGIN dup WHILE over c@ $80 < >r 1 /string r> UNTIL THEN ;
: .addr-path ( addr -- )
: .addr-path ( addr -- )
dup be@ routes #.key dup 0= IF drop $10 xtype ELSE
dup be@ routes #.key dup 0= IF drop $10 xtype ELSE
$@ .address
$@ .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
\
Create udp socket
...
...
net2o-socks.fs
View file @
6ca7f7e8
...
@@ -204,7 +204,7 @@ Variable lastn2oaddr
...
@@ -204,7 +204,7 @@ Variable lastn2oaddr
path
r
>
plen
move
;
path
r
>
plen
move
;
:
skip
-
dest
(
addr
--
)
:
skip
-
dest
(
addr
--
)
$
10
2
dup
0
scan
nip
-
$
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
addr2
addr1
u2
move
addr1
u1
u2
/
string
erase
;
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