Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
e5afbba1
Commit
e5afbba1
authored
Jul 08, 2009
by
Jan Engelhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netfilter: iptables: remove unused datalen variable
Signed-off-by:
Jan Engelhardt
<
jengelh@medozas.de
>
parent
98d89b41
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
net/ipv4/netfilter/ip_tables.c
net/ipv4/netfilter/ip_tables.c
+0
-4
No files found.
net/ipv4/netfilter/ip_tables.c
View file @
e5afbba1
...
@@ -315,7 +315,6 @@ ipt_do_table(struct sk_buff *skb,
...
@@ -315,7 +315,6 @@ ipt_do_table(struct sk_buff *skb,
static
const
char
nulldevname
[
IFNAMSIZ
]
__attribute__
((
aligned
(
sizeof
(
long
))));
static
const
char
nulldevname
[
IFNAMSIZ
]
__attribute__
((
aligned
(
sizeof
(
long
))));
const
struct
iphdr
*
ip
;
const
struct
iphdr
*
ip
;
u_int16_t
datalen
;
bool
hotdrop
=
false
;
bool
hotdrop
=
false
;
/* Initializing verdict to NF_DROP keeps gcc happy. */
/* Initializing verdict to NF_DROP keeps gcc happy. */
unsigned
int
verdict
=
NF_DROP
;
unsigned
int
verdict
=
NF_DROP
;
...
@@ -328,7 +327,6 @@ ipt_do_table(struct sk_buff *skb,
...
@@ -328,7 +327,6 @@ ipt_do_table(struct sk_buff *skb,
/* Initialization */
/* Initialization */
ip
=
ip_hdr
(
skb
);
ip
=
ip_hdr
(
skb
);
datalen
=
skb
->
len
-
ip
->
ihl
*
4
;
indev
=
in
?
in
->
name
:
nulldevname
;
indev
=
in
?
in
->
name
:
nulldevname
;
outdev
=
out
?
out
->
name
:
nulldevname
;
outdev
=
out
?
out
->
name
:
nulldevname
;
/* We handle fragments by dealing with the first fragment as
/* We handle fragments by dealing with the first fragment as
...
@@ -427,8 +425,6 @@ ipt_do_table(struct sk_buff *skb,
...
@@ -427,8 +425,6 @@ ipt_do_table(struct sk_buff *skb,
#endif
#endif
/* Target might have changed stuff. */
/* Target might have changed stuff. */
ip
=
ip_hdr
(
skb
);
ip
=
ip_hdr
(
skb
);
datalen
=
skb
->
len
-
ip
->
ihl
*
4
;
if
(
verdict
==
IPT_CONTINUE
)
if
(
verdict
==
IPT_CONTINUE
)
e
=
ipt_next_entry
(
e
);
e
=
ipt_next_entry
(
e
);
else
else
...
...
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