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
b986a6d2
Commit
b986a6d2
authored
Aug 24, 2014
by
bernd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
7892eae5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
net2o.fs
net2o.fs
+7
-8
No files found.
net2o.fs
View file @
b986a6d2
...
...
@@ -325,13 +325,12 @@ User ip6:#
: check-ip4 ( ip4addr -- my-ip4addr 4 ) noipv4( 0 EXIT )
[: sockaddr_in6 %size alen !
sockaddr ipv4! query-sock sockaddr sock-rest connect
IF errno 101 = IF drop "
\
0
\
0
\
0
\
0
" ELSE true ?ior THEN THEN
query-sock sockaddr1 alen getsockname dup 0< errno 101 = and
IF drop s"
"
\
0 is an invalid result
ELSE ?ior
dup 0< errno 101 = and IF drop ip6::0 4 EXIT THEN ?ior
query-sock sockaddr1 alen getsockname
dup 0< errno 101 = and IF drop ip6::0 4 EXIT THEN ?ior
sockaddr1 family w@ AF_INET6 =
IF ?fake-ip4 ELSE sin_addr 4 THEN
THEN
;] 'sock ;
;] 'sock ;
$25DDC249 Constant dummy-ipv4
\
this is my net2o ipv4 address
Create dummy-ipv6
\
this is my net2o ipv6 address
...
...
@@ -347,7 +346,7 @@ $FD c, $00 c, $0000 w, $0000 w, $0000 w, $0000 w, $0000 w, $0000 w, $0100 w,
[: sockaddr_in6 %size alen !
sockaddr sin6_addr $10 move
query-sock sockaddr sock-rest connect dup 0< errno 101 = and
IF drop
s"
"
IF drop
ip6::0 $10
ELSE ?ior
query-sock sockaddr1 alen getsockname ?ior
?fake-ip4
...
...
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