Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
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
iproute2
Commits
04457b3d
Commit
04457b3d
authored
Jun 02, 2004
by
osdl.org!shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use const char
(Logical change 1.6)
parent
a05852a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
include/utils.h
include/utils.h
+17
-15
No files found.
include/utils.h
View file @
04457b3d
...
...
@@ -57,33 +57,35 @@ struct ipx_addr {
};
extern
__u32
get_addr32
(
char
*
name
);
extern
int
get_addr_1
(
inet_prefix
*
dst
,
char
*
arg
,
int
family
);
extern
int
get_addr_1
(
inet_prefix
*
dst
,
c
onst
c
har
*
arg
,
int
family
);
extern
int
get_prefix_1
(
inet_prefix
*
dst
,
char
*
arg
,
int
family
);
extern
int
get_addr
(
inet_prefix
*
dst
,
char
*
arg
,
int
family
);
extern
int
get_prefix
(
inet_prefix
*
dst
,
char
*
arg
,
int
family
);
extern
int
get_integer
(
int
*
val
,
char
*
arg
,
int
base
);
extern
int
get_unsigned
(
unsigned
*
val
,
char
*
arg
,
int
base
);
extern
int
get_integer
(
int
*
val
,
c
onst
c
har
*
arg
,
int
base
);
extern
int
get_unsigned
(
unsigned
*
val
,
c
onst
c
har
*
arg
,
int
base
);
#define get_byte get_u8
#define get_ushort get_u16
#define get_short get_s16
extern
int
get_u32
(
__u32
*
val
,
char
*
arg
,
int
base
);
extern
int
get_u16
(
__u16
*
val
,
char
*
arg
,
int
base
);
extern
int
get_s16
(
__s16
*
val
,
char
*
arg
,
int
base
);
extern
int
get_u8
(
__u8
*
val
,
char
*
arg
,
int
base
);
extern
int
get_s8
(
__s8
*
val
,
char
*
arg
,
int
base
);
extern
int
get_u32
(
__u32
*
val
,
c
onst
c
har
*
arg
,
int
base
);
extern
int
get_u16
(
__u16
*
val
,
c
onst
c
har
*
arg
,
int
base
);
extern
int
get_s16
(
__s16
*
val
,
c
onst
c
har
*
arg
,
int
base
);
extern
int
get_u8
(
__u8
*
val
,
c
onst
c
har
*
arg
,
int
base
);
extern
int
get_s8
(
__s8
*
val
,
c
onst
c
har
*
arg
,
int
base
);
extern
__u8
*
hexstring_n2a
(
const
__u8
*
str
,
int
len
,
__u8
*
buf
,
int
blen
);
extern
__u8
*
hexstring_a2n
(
const
__u8
*
str
,
__u8
*
buf
,
int
blen
);
extern
const
char
*
format_host
(
int
af
,
int
len
,
void
*
addr
,
char
*
buf
,
int
buflen
);
extern
const
char
*
rt_addr_n2a
(
int
af
,
int
len
,
void
*
addr
,
char
*
buf
,
int
buflen
);
extern
const
char
*
format_host
(
int
af
,
int
len
,
const
void
*
addr
,
char
*
buf
,
int
buflen
);
extern
const
char
*
rt_addr_n2a
(
int
af
,
int
len
,
const
void
*
addr
,
char
*
buf
,
int
buflen
);
void
invarg
(
c
har
*
,
char
*
)
__attribute__
((
noreturn
));
void
duparg
(
c
har
*
,
char
*
)
__attribute__
((
noreturn
));
void
duparg2
(
c
har
*
,
char
*
)
__attribute__
((
noreturn
));
int
matches
(
c
har
*
arg
,
char
*
pattern
);
extern
int
inet_addr_match
(
inet_prefix
*
a
,
inet_prefix
*
b
,
int
bits
);
void
invarg
(
c
onst
char
*
,
const
char
*
)
__attribute__
((
noreturn
));
void
duparg
(
c
onst
char
*
,
const
char
*
)
__attribute__
((
noreturn
));
void
duparg2
(
c
onst
char
*
,
const
char
*
)
__attribute__
((
noreturn
));
int
matches
(
c
onst
char
*
arg
,
const
char
*
pattern
);
extern
int
inet_addr_match
(
const
inet_prefix
*
a
,
const
inet_prefix
*
b
,
int
bits
);
const
char
*
dnet_ntop
(
int
af
,
const
void
*
addr
,
char
*
str
,
size_t
len
);
int
dnet_pton
(
int
af
,
const
char
*
src
,
void
*
addr
);
...
...
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