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
c678a7b6
Commit
c678a7b6
authored
Jan 24, 2004
by
Andrew Morton
Committed by
David S. Miller
Jan 24, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[IPV6]: Do not use lvalue in assignment.
parent
6867b0cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
net/ipv6/ndisc.c
net/ipv6/ndisc.c
+8
-4
No files found.
net/ipv6/ndisc.c
View file @
c678a7b6
...
@@ -475,7 +475,8 @@ static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh,
...
@@ -475,7 +475,8 @@ static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh,
skb_reserve
(
skb
,
(
dev
->
hard_header_len
+
15
)
&
~
15
);
skb_reserve
(
skb
,
(
dev
->
hard_header_len
+
15
)
&
~
15
);
ip6_nd_hdr
(
sk
,
skb
,
dev
,
src_addr
,
daddr
,
IPPROTO_ICMPV6
,
len
);
ip6_nd_hdr
(
sk
,
skb
,
dev
,
src_addr
,
daddr
,
IPPROTO_ICMPV6
,
len
);
skb
->
h
.
raw
=
(
unsigned
char
*
)
msg
=
(
struct
nd_msg
*
)
skb_put
(
skb
,
len
);
msg
=
(
struct
nd_msg
*
)
skb_put
(
skb
,
len
);
skb
->
h
.
raw
=
(
unsigned
char
*
)
msg
;
msg
->
icmph
.
icmp6_type
=
NDISC_NEIGHBOUR_ADVERTISEMENT
;
msg
->
icmph
.
icmp6_type
=
NDISC_NEIGHBOUR_ADVERTISEMENT
;
msg
->
icmph
.
icmp6_code
=
0
;
msg
->
icmph
.
icmp6_code
=
0
;
...
@@ -559,7 +560,8 @@ void ndisc_send_ns(struct net_device *dev, struct neighbour *neigh,
...
@@ -559,7 +560,8 @@ void ndisc_send_ns(struct net_device *dev, struct neighbour *neigh,
skb_reserve
(
skb
,
(
dev
->
hard_header_len
+
15
)
&
~
15
);
skb_reserve
(
skb
,
(
dev
->
hard_header_len
+
15
)
&
~
15
);
ip6_nd_hdr
(
sk
,
skb
,
dev
,
saddr
,
daddr
,
IPPROTO_ICMPV6
,
len
);
ip6_nd_hdr
(
sk
,
skb
,
dev
,
saddr
,
daddr
,
IPPROTO_ICMPV6
,
len
);
skb
->
h
.
raw
=
(
unsigned
char
*
)
msg
=
(
struct
nd_msg
*
)
skb_put
(
skb
,
len
);
msg
=
(
struct
nd_msg
*
)
skb_put
(
skb
,
len
);
skb
->
h
.
raw
=
(
unsigned
char
*
)
msg
;
msg
->
icmph
.
icmp6_type
=
NDISC_NEIGHBOUR_SOLICITATION
;
msg
->
icmph
.
icmp6_type
=
NDISC_NEIGHBOUR_SOLICITATION
;
msg
->
icmph
.
icmp6_code
=
0
;
msg
->
icmph
.
icmp6_code
=
0
;
msg
->
icmph
.
icmp6_cksum
=
0
;
msg
->
icmph
.
icmp6_cksum
=
0
;
...
@@ -630,7 +632,8 @@ void ndisc_send_rs(struct net_device *dev, struct in6_addr *saddr,
...
@@ -630,7 +632,8 @@ void ndisc_send_rs(struct net_device *dev, struct in6_addr *saddr,
skb_reserve
(
skb
,
(
dev
->
hard_header_len
+
15
)
&
~
15
);
skb_reserve
(
skb
,
(
dev
->
hard_header_len
+
15
)
&
~
15
);
ip6_nd_hdr
(
sk
,
skb
,
dev
,
saddr
,
daddr
,
IPPROTO_ICMPV6
,
len
);
ip6_nd_hdr
(
sk
,
skb
,
dev
,
saddr
,
daddr
,
IPPROTO_ICMPV6
,
len
);
skb
->
h
.
raw
=
(
unsigned
char
*
)
hdr
=
(
struct
icmp6hdr
*
)
skb_put
(
skb
,
len
);
hdr
=
(
struct
icmp6hdr
*
)
skb_put
(
skb
,
len
);
skb
->
h
.
raw
=
(
unsigned
char
*
)
hdr
;
hdr
->
icmp6_type
=
NDISC_ROUTER_SOLICITATION
;
hdr
->
icmp6_type
=
NDISC_ROUTER_SOLICITATION
;
hdr
->
icmp6_code
=
0
;
hdr
->
icmp6_code
=
0
;
hdr
->
icmp6_cksum
=
0
;
hdr
->
icmp6_cksum
=
0
;
...
@@ -1374,7 +1377,8 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
...
@@ -1374,7 +1377,8 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,
ip6_nd_hdr
(
sk
,
buff
,
dev
,
&
saddr_buf
,
&
skb
->
nh
.
ipv6h
->
saddr
,
ip6_nd_hdr
(
sk
,
buff
,
dev
,
&
saddr_buf
,
&
skb
->
nh
.
ipv6h
->
saddr
,
IPPROTO_ICMPV6
,
len
);
IPPROTO_ICMPV6
,
len
);
buff
->
h
.
raw
=
(
unsigned
char
*
)
icmph
=
(
struct
icmp6hdr
*
)
skb_put
(
buff
,
len
);
icmph
=
(
struct
icmp6hdr
*
)
skb_put
(
buff
,
len
);
buff
->
h
.
raw
=
(
unsigned
char
*
)
icmph
;
memset
(
icmph
,
0
,
sizeof
(
struct
icmp6hdr
));
memset
(
icmph
,
0
,
sizeof
(
struct
icmp6hdr
));
icmph
->
icmp6_type
=
NDISC_REDIRECT
;
icmph
->
icmp6_type
=
NDISC_REDIRECT
;
...
...
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