Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
linux
Commits
fcb1fee4
Commit
fcb1fee4
authored
Mar 19, 2002
by
Alexey Kuznetsov
Committed by
David S. Miller
Mar 19, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not fail creating _new_ NOARP entry with EPERM.
parent
8a62319b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
net/core/neighbour.c
net/core/neighbour.c
+3
-1
No files found.
net/core/neighbour.c
View file @
fcb1fee4
...
@@ -1239,6 +1239,7 @@ int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
...
@@ -1239,6 +1239,7 @@ int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
read_lock
(
&
neigh_tbl_lock
);
read_lock
(
&
neigh_tbl_lock
);
for
(
tbl
=
neigh_tables
;
tbl
;
tbl
=
tbl
->
next
)
{
for
(
tbl
=
neigh_tables
;
tbl
;
tbl
=
tbl
->
next
)
{
int
err
=
0
;
int
err
=
0
;
int
override
=
1
;
struct
neighbour
*
n
;
struct
neighbour
*
n
;
if
(
tbl
->
family
!=
ndm
->
ndm_family
)
if
(
tbl
->
family
!=
ndm
->
ndm_family
)
...
@@ -1266,6 +1267,7 @@ int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
...
@@ -1266,6 +1267,7 @@ int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
if
(
n
)
{
if
(
n
)
{
if
(
nlh
->
nlmsg_flags
&
NLM_F_EXCL
)
if
(
nlh
->
nlmsg_flags
&
NLM_F_EXCL
)
err
=
-
EEXIST
;
err
=
-
EEXIST
;
override
=
nlh
->
nlmsg_flags
&
NLM_F_REPLACE
;
}
else
if
(
!
(
nlh
->
nlmsg_flags
&
NLM_F_CREATE
))
}
else
if
(
!
(
nlh
->
nlmsg_flags
&
NLM_F_CREATE
))
err
=
-
ENOENT
;
err
=
-
ENOENT
;
else
{
else
{
...
@@ -1278,7 +1280,7 @@ int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
...
@@ -1278,7 +1280,7 @@ int neigh_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg)
if
(
err
==
0
)
{
if
(
err
==
0
)
{
err
=
neigh_update
(
n
,
nda
[
NDA_LLADDR
-
1
]
?
RTA_DATA
(
nda
[
NDA_LLADDR
-
1
])
:
NULL
,
err
=
neigh_update
(
n
,
nda
[
NDA_LLADDR
-
1
]
?
RTA_DATA
(
nda
[
NDA_LLADDR
-
1
])
:
NULL
,
ndm
->
ndm_state
,
ndm
->
ndm_state
,
nlh
->
nlmsg_flags
&
NLM_F_REPLACE
,
0
);
override
,
0
);
}
}
if
(
n
)
if
(
n
)
neigh_release
(
n
);
neigh_release
(
n
);
...
...
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