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
be515305
Commit
be515305
authored
Jan 28, 2015
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into net-next
parents
242a9f73
0575fa22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
include/linux/can/netlink.h
include/linux/can/netlink.h
+1
-0
ip/ipneigh.c
ip/ipneigh.c
+7
-2
No files found.
include/linux/can/netlink.h
View file @
be515305
...
@@ -98,6 +98,7 @@ struct can_ctrlmode {
...
@@ -98,6 +98,7 @@ struct can_ctrlmode {
#define CAN_CTRLMODE_BERR_REPORTING 0x10
/* Bus-error reporting */
#define CAN_CTRLMODE_BERR_REPORTING 0x10
/* Bus-error reporting */
#define CAN_CTRLMODE_FD 0x20
/* CAN FD mode */
#define CAN_CTRLMODE_FD 0x20
/* CAN FD mode */
#define CAN_CTRLMODE_PRESUME_ACK 0x40
/* Ignore missing CAN ACKs */
#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
* CAN device statistics
...
...
ip/ipneigh.c
View file @
be515305
...
@@ -157,14 +157,19 @@ static int ipneigh_modify(int cmd, int flags, int argc, char **argv)
...
@@ -157,14 +157,19 @@ static int ipneigh_modify(int cmd, int flags, int argc, char **argv)
exit
(
-
1
);
exit
(
-
1
);
}
}
req
.
ndm
.
ndm_family
=
dst
.
family
;
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"
))
{
if
(
lla
&&
strcmp
(
lla
,
"null"
))
{
char
llabuf
[
20
];
char
llabuf
[
20
];
int
l
;
int
l
;
l
=
ll_addr_a2n
(
llabuf
,
sizeof
(
llabuf
),
lla
);
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
);
ll_init_map
(
&
rth
);
...
...
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