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
afd5dad9
Commit
afd5dad9
authored
Jul 25, 2008
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2
parents
f63bb3e4
6420b62e
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
33 additions
and
13 deletions
+33
-13
Makefile
Makefile
+5
-5
include/SNAPSHOT.h
include/SNAPSHOT.h
+1
-1
include/linux/netfilter_ipv4/ip_tables.h
include/linux/netfilter_ipv4/ip_tables.h
+1
-0
include/linux/xfrm.h
include/linux/xfrm.h
+1
-0
ip/ipaddrlabel.c
ip/ipaddrlabel.c
+12
-1
ip/iplink.c
ip/iplink.c
+4
-1
netem/Makefile
netem/Makefile
+2
-2
tc/Makefile
tc/Makefile
+2
-2
tc/tc_util.c
tc/tc_util.c
+5
-1
No files found.
Makefile
View file @
afd5dad9
DESTDIR
=
SBINDIR
=
/
usr/
sbin
DESTDIR
=
/usr/
SBINDIR
=
/sbin
CONFDIR
=
/etc/iproute2
DOCDIR
=
/
usr/
share/doc/iproute2
MANDIR
=
/
usr/
share/man
DOCDIR
=
/share/doc/iproute2
MANDIR
=
/share/man
# Path to db_185.h include
DBM_INCLUDE
:=
/usr/include
DEFINES
=
-DRESOLVE_HOSTNAMES
DEFINES
=
-DRESOLVE_HOSTNAMES
-DDESTDIR
=
\"
$(DESTDIR)
\"
#options if you have a bind>=4.9.4 libresolv (or, maybe, glibc)
LDLIBS
=
-lresolv
...
...
include/SNAPSHOT.h
View file @
afd5dad9
static
const
char
SNAPSHOT
[]
=
"080
417
"
;
static
const
char
SNAPSHOT
[]
=
"080
725
"
;
include/linux/netfilter_ipv4/ip_tables.h
View file @
afd5dad9
...
...
@@ -15,6 +15,7 @@
#ifndef _IPTABLES_H
#define _IPTABLES_H
#include <linux/types.h>
#include <linux/netfilter_ipv4.h>
#include <linux/netfilter/x_tables.h>
...
...
include/linux/xfrm.h
View file @
afd5dad9
...
...
@@ -339,6 +339,7 @@ struct xfrm_usersa_info {
#define XFRM_STATE_NOPMTUDISC 4
#define XFRM_STATE_WILDRECV 8
#define XFRM_STATE_ICMP 16
#define XFRM_STATE_AF_UNSPEC 32
};
struct
xfrm_usersa_id
{
...
...
ip/ipaddrlabel.c
View file @
afd5dad9
...
...
@@ -139,6 +139,8 @@ static int ipaddrlabel_modify(int cmd, int argc, char **argv)
inet_prefix
prefix
;
uint32_t
label
=
0xffffffffUL
;
char
*
p
=
NULL
;
char
*
l
=
NULL
;
memset
(
&
req
,
0
,
sizeof
(
req
));
memset
(
&
prefix
,
0
,
sizeof
(
prefix
));
...
...
@@ -157,6 +159,7 @@ static int ipaddrlabel_modify(int cmd, int argc, char **argv)
while
(
argc
>
0
)
{
if
(
strcmp
(
*
argv
,
"prefix"
)
==
0
)
{
NEXT_ARG
();
p
=
*
argv
;
get_prefix
(
&
prefix
,
*
argv
,
preferred_family
);
}
else
if
(
strcmp
(
*
argv
,
"dev"
)
==
0
)
{
NEXT_ARG
();
...
...
@@ -164,13 +167,21 @@ static int ipaddrlabel_modify(int cmd, int argc, char **argv)
invarg
(
"dev is invalid
\n
"
,
*
argv
);
}
else
if
(
strcmp
(
*
argv
,
"label"
)
==
0
)
{
NEXT_ARG
();
l
=
*
argv
;
if
(
get_u32
(
&
label
,
*
argv
,
0
)
||
label
==
0xffffffffUL
)
invarg
(
"label is invalid
\n
"
,
*
argv
);
}
argc
--
;
argv
++
;
}
if
(
p
==
NULL
)
{
fprintf
(
stderr
,
"Not enough information:
\"
prefix
\"
argument is required.
\n
"
);
return
-
1
;
}
if
(
l
==
NULL
)
{
fprintf
(
stderr
,
"Not enough information:
\"
label
\"
argument is required.
\n
"
);
return
-
1
;
}
addattr32
(
&
req
.
n
,
sizeof
(
req
),
IFAL_LABEL
,
label
);
addattr_l
(
&
req
.
n
,
sizeof
(
req
),
IFAL_ADDRESS
,
&
prefix
.
data
,
prefix
.
bytelen
);
req
.
ifal
.
ifal_prefixlen
=
prefix
.
bitlen
;
...
...
ip/iplink.c
View file @
afd5dad9
...
...
@@ -33,6 +33,9 @@
#include "ip_common.h"
#define IPLINK_IOCTL_COMPAT 1
#ifndef DESTDIR
#define DESTDIR "/usr/"
#endif
static
void
usage
(
void
)
__attribute__
((
noreturn
));
...
...
@@ -78,7 +81,7 @@ struct link_util *get_link_kind(const char *id)
if
(
strcmp
(
l
->
id
,
id
)
==
0
)
return
l
;
snprintf
(
buf
,
sizeof
(
buf
),
"/usr
/lib/ip/link_%s.so"
,
id
);
snprintf
(
buf
,
sizeof
(
buf
),
DESTDIR
"
/lib/ip/link_%s.so"
,
id
);
dlh
=
dlopen
(
buf
,
RTLD_LAZY
);
if
(
dlh
==
NULL
)
{
/* look in current binary, only open once */
...
...
netem/Makefile
View file @
afd5dad9
...
...
@@ -20,9 +20,9 @@ stats: stats.c
$(HOSTCC)
$(CCOPTS)
-I
../include
-o
$@
$@
.c
-lm
install
:
all
mkdir
-p
$(DESTDIR)
/
usr/
lib/tc
mkdir
-p
$(DESTDIR)
/lib/tc
for
i
in
$(DISTDATA)
;
\
do
install
-m
755
$$
i
$(DESTDIR)
/
usr/
lib/tc
;
\
do
install
-m
755
$$
i
$(DESTDIR)
/lib/tc
;
\
done
clean
:
...
...
tc/Makefile
View file @
afd5dad9
...
...
@@ -72,10 +72,10 @@ libtc.a: $(TCLIB)
$(AR)
rcs
$@
$(TCLIB)
install
:
all
mkdir
-p
$(DESTDIR)
/
usr/
lib/tc
mkdir
-p
$(DESTDIR)
/lib/tc
install
-m
0755 tc
$(DESTDIR)$(SBINDIR)
for
i
in
$(TCSO)
;
\
do
install
-m
755
$$
i
$(DESTDIR)
/
usr/
lib/tc
;
\
do
install
-m
755
$$
i
$(DESTDIR)
/lib/tc
;
\
done
clean
:
...
...
tc/tc_util.c
View file @
afd5dad9
...
...
@@ -24,13 +24,17 @@
#include "utils.h"
#include "tc_util.h"
#ifndef DESTDIR
#define DESTDIR "/usr/"
#endif
const
char
*
get_tc_lib
(
void
)
{
const
char
*
lib_dir
;
lib_dir
=
getenv
(
"TC_LIB_DIR"
);
if
(
!
lib_dir
)
lib_dir
=
"/usr
/lib/tc"
;
lib_dir
=
DESTDIR
"
/lib/tc"
;
return
lib_dir
;
}
...
...
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