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
668dfab2
Commit
668dfab2
authored
Feb 05, 2015
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into net-next
parents
242a9f73
4c7d75de
Changes
10
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
414 additions
and
344 deletions
+414
-344
include/linux/can/netlink.h
include/linux/can/netlink.h
+1
-0
include/namespace.h
include/namespace.h
+2
-1
ip/ipneigh.c
ip/ipneigh.c
+7
-2
man/man8/ip-link.8.in
man/man8/ip-link.8.in
+3
-3
misc/ss.c
misc/ss.c
+375
-336
testsuite/Makefile
testsuite/Makefile
+2
-1
testsuite/lib/generic.sh
testsuite/lib/generic.sh
+7
-1
testsuite/tests/ip/link/dev_wo_vf_rate.nl
testsuite/tests/ip/link/dev_wo_vf_rate.nl
+0
-0
testsuite/tests/ip/link/new_link.t
testsuite/tests/ip/link/new_link.t
+11
-0
testsuite/tests/ip/link/show_dev_wo_vf_rate.t
testsuite/tests/ip/link/show_dev_wo_vf_rate.t
+6
-0
No files found.
include/linux/can/netlink.h
View file @
668dfab2
...
...
@@ -98,6 +98,7 @@ struct can_ctrlmode {
#define CAN_CTRLMODE_BERR_REPORTING 0x10
/* Bus-error reporting */
#define CAN_CTRLMODE_FD 0x20
/* CAN FD mode */
#define CAN_CTRLMODE_PRESUME_ACK 0x40
/* Ignore missing CAN ACKs */
#define CAN_CTRLMODE_FD_NON_ISO 0x80
/* CAN FD in non-ISO mode */
/*
* CAN device statistics
...
...
include/namespace.h
View file @
668dfab2
...
...
@@ -3,6 +3,7 @@
#include <sched.h>
#include <sys/mount.h>
#include <sys/syscall.h>
#include <errno.h>
#define NETNS_RUN_DIR "/var/run/netns"
...
...
@@ -30,7 +31,7 @@
#endif
#ifndef HAVE_SETNS
static
int
setns
(
int
fd
,
int
nstype
)
static
in
line
in
t
setns
(
int
fd
,
int
nstype
)
{
#ifdef __NR_setns
return
syscall
(
__NR_setns
,
fd
,
nstype
);
...
...
ip/ipneigh.c
View file @
668dfab2
...
...
@@ -157,14 +157,19 @@ static int ipneigh_modify(int cmd, int flags, int argc, char **argv)
exit
(
-
1
);
}
req
.
ndm
.
ndm_family
=
dst
.
family
;
addattr_l
(
&
req
.
n
,
sizeof
(
req
),
NDA_DST
,
&
dst
.
data
,
dst
.
bytelen
);
if
(
addattr_l
(
&
req
.
n
,
sizeof
(
req
),
NDA_DST
,
&
dst
.
data
,
dst
.
bytelen
)
<
0
)
return
-
1
;
if
(
lla
&&
strcmp
(
lla
,
"null"
))
{
char
llabuf
[
20
];
int
l
;
l
=
ll_addr_a2n
(
llabuf
,
sizeof
(
llabuf
),
lla
);
addattr_l
(
&
req
.
n
,
sizeof
(
req
),
NDA_LLADDR
,
llabuf
,
l
);
if
(
l
<
0
)
return
-
1
;
if
(
addattr_l
(
&
req
.
n
,
sizeof
(
req
),
NDA_LLADDR
,
llabuf
,
l
)
<
0
)
return
-
1
;
}
ll_init_map
(
&
rth
);
...
...
man/man8/ip-link.8.in
View file @
668dfab2
...
...
@@ -221,13 +221,13 @@ Link types:
- Virtual tunnel interface GRE over IPv4
.sp
.BR gretap
- Virtual L2 tu
u
nel interface GRE over IPv4
- Virtual L2 tu
n
nel interface GRE over IPv4
.sp
.BR ip6gre
- Virtual tu
u
nel interface GRE over IPv6
- Virtual tu
n
nel interface GRE over IPv6
.sp
.BR ip6gretap
- Virtual L2 tu
u
nel interface GRE over IPv6
- Virtual L2 tu
n
nel interface GRE over IPv6
.in -8
.TP
...
...
misc/ss.c
View file @
668dfab2
This diff is collapsed.
Click to expand it.
testsuite/Makefile
View file @
668dfab2
...
...
@@ -31,12 +31,13 @@ listtests:
alltests
:
$(TESTS)
clean
:
@
echo
"Removing
$(RESULTS_DIR)
dir ..."
@
rm
-rf
$(RESULTS_DIR)
distclean
:
clean
echo
"Entering iproute2"
&&
cd
iproute2
&&
$(MAKE)
distclean
&&
cd
..
;
$(TESTS)
:
$(TESTS)
:
clean
@
mkdir
-p
$(RESULTS_DIR)
@
for
d
in
$(TESTS_DIR)
;
do
\
...
...
testsuite/lib/generic.sh
View file @
668dfab2
...
...
@@ -62,8 +62,9 @@ ts_ip()
TMP_OUT
=
`
mktemp
/tmp/tc_testsuite.XXXXXX
`
||
exit
$IP
$@
2>
$TMP_ERR
>
$TMP_OUT
RET
=
$?
if
[
-s
$TMP_ERR
]
;
then
if
[
-s
$TMP_ERR
]
||
[
"
$RET
"
!=
"0"
]
;
then
ts_err
"
${
SCRIPT
}
:
${
DESC
}
failed:"
ts_err
"command:
$IP
$@
"
ts_err
"stderr output:"
...
...
@@ -91,3 +92,8 @@ ts_qdisc_available()
return
1
;
fi
}
rand_dev
()
{
echo
"dev-
$(
tr
-dc
"[:alpha:]"
< /dev/urandom |
head
-c
6
)
"
}
testsuite/tests/ip/link/dev_wo_vf_rate.nl
0 → 100644
View file @
668dfab2
File added
testsuite/tests/ip/link/new_link.t
0 → 100755
View file @
668dfab2
#!/bin/sh
source
lib
/
generic
.
sh
ts_log
"
[Testing add/del virtual links]
"
NEW_DEV
=
"
$(rand_dev)
"
ts_ip
"
$0
"
"
Add
$NEW_DEV
dummy interface
"
link
add
dev
$NEW_DEV
type
dummy
ts_ip
"
$0
"
"
Show
$NEW_DEV
dummy interface
"
link
show
dev
$NEW_DEV
ts_ip
"
$0
"
"
Del
$NEW_DEV
dummy interface
"
link
del
dev
$NEW_DEV
testsuite/tests/ip/link/show_dev_wo_vf_rate.t
0 → 100755
View file @
668dfab2
#!/bin/sh
source
lib
/
generic
.
sh
NL_FILE
=
"
tests/ip/link/dev_wo_vf_rate.nl
"
ts_ip
"
$0
"
"
Show VF devices w/o VF rate info
"
-
d
monitor
file
$NL_FILE
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