The congestion ops and af_ops in the inet_connection_sock
can be const.

Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>


--- pro-2.6.orig/include/net/inet_connection_sock.h
+++ pro-2.6/include/net/inet_connection_sock.h
@@ -83,8 +83,8 @@ struct inet_connection_sock {
        struct timer_list         icsk_delack_timer;
        __u32                     icsk_rto;
        __u32                     icsk_pmtu_cookie;
-       struct tcp_congestion_ops *icsk_ca_ops;
-       struct inet_connection_sock_af_ops *icsk_af_ops;
+       const struct tcp_congestion_ops *icsk_ca_ops;
+       const struct inet_connection_sock_af_ops *icsk_af_ops;
        unsigned int              (*icsk_sync_mss)(struct sock *sk, u32 pmtu);
        __u8                      icsk_ca_state;
        __u8                      icsk_retransmits;
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to