Revert "ANDROID: net: fix 'const' warnings"
This reverts commit 4f27b251f2
.
Bug: 16355602
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
This commit is contained in:
parent
9392770aa3
commit
82518b9a3f
2 changed files with 3 additions and 3 deletions
|
@ -420,7 +420,7 @@ struct dst_entry *inet_csk_route_req(const struct sock *sk,
|
|||
sk->sk_protocol, inet_sk_flowi_flags(sk),
|
||||
(opt && opt->opt.srr) ? opt->opt.faddr : ireq->ir_rmt_addr,
|
||||
ireq->ir_loc_addr, ireq->ir_rmt_port,
|
||||
htons(ireq->ir_num), sock_i_uid((struct sock *)sk));
|
||||
htons(ireq->ir_num), sock_i_uid(sk));
|
||||
security_req_classify_flow(req, flowi4_to_flowi(fl4));
|
||||
rt = ip_route_output_flow(net, fl4, sk);
|
||||
if (IS_ERR(rt))
|
||||
|
@ -457,7 +457,7 @@ struct dst_entry *inet_csk_route_child_sock(const struct sock *sk,
|
|||
sk->sk_protocol, inet_sk_flowi_flags(sk),
|
||||
(opt && opt->opt.srr) ? opt->opt.faddr : ireq->ir_rmt_addr,
|
||||
ireq->ir_loc_addr, ireq->ir_rmt_port,
|
||||
htons(ireq->ir_num), sock_i_uid((struct sock *)sk));
|
||||
htons(ireq->ir_num), sock_i_uid(sk));
|
||||
security_req_classify_flow(req, flowi4_to_flowi(fl4));
|
||||
rt = ip_route_output_flow(net, fl4, sk);
|
||||
if (IS_ERR(rt))
|
||||
|
|
|
@ -86,7 +86,7 @@ struct dst_entry *inet6_csk_route_req(const struct sock *sk,
|
|||
fl6->flowi6_mark = ireq->ir_mark;
|
||||
fl6->fl6_dport = ireq->ir_rmt_port;
|
||||
fl6->fl6_sport = htons(ireq->ir_num);
|
||||
fl6->flowi6_uid = sock_i_uid((struct sock *)sk);
|
||||
fl6->flowi6_uid = sock_i_uid(sk);
|
||||
security_req_classify_flow(req, flowi6_to_flowi(fl6));
|
||||
|
||||
dst = ip6_dst_lookup_flow(sk, fl6, final_p);
|
||||
|
|
Loading…
Add table
Reference in a new issue