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
44fcd182
Commit
44fcd182
authored
May 11, 2004
by
Stephen Hemminger
Committed by
David S. Miller
May 11, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BRIDGE]: Allow multiple interfaces with same address (necessary for VLAN's).
parent
8163ca20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
net/bridge/br_fdb.c
net/bridge/br_fdb.c
+10
-10
No files found.
net/bridge/br_fdb.c
View file @
44fcd182
...
...
@@ -277,19 +277,19 @@ int br_fdb_insert(struct net_bridge *br, struct net_bridge_port *source,
if
(
!
memcmp
(
fdb
->
addr
.
addr
,
addr
,
ETH_ALEN
))
{
/* attempt to update an entry for a local interface */
if
(
unlikely
(
fdb
->
is_local
))
{
if
(
is_local
)
printk
(
KERN_INFO
"%s: attempt to add"
" interface with same source address.
\n
"
,
source
->
dev
->
name
);
else
if
(
net_ratelimit
())
/* it is okay to have multiple ports with same
* address, just don't allow to be spoofed.
*/
if
(
!
is_local
)
{
if
(
net_ratelimit
())
printk
(
KERN_WARNING
"%s: received packet with "
" own address as source address
\n
"
,
source
->
dev
->
name
);
ret
=
-
EEXIST
;
}
goto
out
;
}
if
(
likely
(
!
fdb
->
is_static
||
is_local
))
{
/* move to end of age list */
list_del
(
&
fdb
->
age_list
);
...
...
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