Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
23bc8886
Commit
23bc8886
authored
Apr 16, 1998
by
Phil Blundell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
couple of small fixes
parent
cd15645f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
ChangeLog
ChangeLog
+5
-0
lib/ash.c
lib/ash.c
+8
-2
lib/net-string.c
lib/net-string.c
+1
-1
No files found.
ChangeLog
View file @
23bc8886
1998-04-15 Phil Blundell <philb@gnu.org>
* lib/ash.c (pr_ash): Fix typo.
(in_ash): Hamming-encode the hops.
Fri Apr 10 22:26:48 1998 Philip Blundell <Philip.Blundell@pobox.com>
* ifconfig.c (ife_print): Bracket Appletalk stuff in #if
...
...
lib/ash.c
View file @
23bc8886
...
...
@@ -39,7 +39,7 @@ pr_ash(unsigned char *ptr)
p
[
0
]
=
'['
;
p
++
;
while
(
ptr
[
i
]
!=
0xc9
&&
ptr
[
i
]
!=
0xff
&&
(
i
<
ASH_ALEN
))
sprintf
(
p
++
,
"%
01
"
,
ptr
[
i
++
]);
sprintf
(
p
++
,
"%
1x
"
,
ptr
[
i
++
]);
*
(
p
++
)
=
']'
;
*
p
=
0
;
...
...
@@ -57,6 +57,12 @@ pr_sash(struct sockaddr *sap)
return
pr_ash
(
sap
->
sa_data
);
}
static
unsigned
char
hamming
[
16
]
=
{
0x15
,
0x02
,
0x49
,
0x5e
,
0x64
,
0x73
,
0x38
,
0x2f
,
0xd0
,
0xc7
,
0x8c
,
0x9b
,
0xa1
,
0xb6
,
0xfd
,
0xea
};
static
int
in_ash
(
char
*
bufp
,
struct
sockaddr
*
sap
)
...
...
@@ -70,7 +76,7 @@ in_ash(char *bufp, struct sockaddr *sap)
while
(
bufp
&&
i
<
ASH_ALEN
)
{
char
*
next
;
int
hop
=
strtol
(
bufp
,
&
next
,
16
);
ptr
[
i
++
]
=
h
op
;
ptr
[
i
++
]
=
h
amming
[
hop
]
;
switch
(
*
next
)
{
case
':'
:
bufp
=
next
+
1
;
...
...
lib/net-string.c
View file @
23bc8886
...
...
@@ -37,7 +37,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string
s
.h>
#include <string.h>
char
*
strsave
(
s
)
...
...
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