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
267480f5
Commit
267480f5
authored
Mar 22, 2006
by
shemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backout the 2.4 utsname hash patch.
parent
7b565754
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
15 deletions
+7
-15
ChangeLog
ChangeLog
+4
-0
tc/f_u32.c
tc/f_u32.c
+3
-15
No files found.
ChangeLog
View file @
267480f5
2006-03-21 Stephen Hemminger <shemminger@freekitty.pdx.osdl.net>
* Back out the 2.4 utsname patch
2006-03-21 James Lentini <jlentini@netapp.com>
* Increase size of hw address allowed for ip neigh to allow
...
...
tc/f_u32.c
View file @
267480f5
...
...
@@ -17,7 +17,6 @@
#include <syslog.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/utsname.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
...
...
@@ -877,7 +876,7 @@ static int u32_parse_opt(struct filter_util *qu, char *handle, int argc, char **
}
else
if
(
strcmp
(
*
argv
,
"sample"
)
==
0
)
{
__u32
hash
;
unsigned
divisor
=
0x100
;
struct
utsname
utsname
;
struct
{
struct
tc_u32_sel
sel
;
struct
tc_u32_key
keys
[
4
];
...
...
@@ -902,19 +901,8 @@ static int u32_parse_opt(struct filter_util *qu, char *handle, int argc, char **
NEXT_ARG
();
}
hash
=
sel2
.
sel
.
keys
[
0
].
val
&
sel2
.
sel
.
keys
[
0
].
mask
;
uname
(
&
utsname
);
if
(
strncmp
(
utsname
.
release
,
"2.4."
,
4
)
==
0
)
{
hash
^=
hash
>>
16
;
hash
^=
hash
>>
8
;
}
else
{
__u32
mask
=
sel2
.
sel
.
keys
[
0
].
mask
;
while
(
mask
&&
!
(
mask
&
1
))
{
mask
>>=
1
;
hash
>>=
1
;
}
hash
&=
0xFF
;
}
htid
=
((
hash
%
divisor
)
<<
12
)
|
(
htid
&
0xFFF00000
);
sample_ok
=
1
;
continue
;
...
...
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