protocol.c (159c6bea37c54dfae44409467e0f17600722d541) protocol.c (b9031d9d87b24e24cd32ea15b5f4220a1e8da909)
1/* SCTP kernel implementation
2 * (C) Copyright IBM Corp. 2001, 2004
3 * Copyright (c) 1999-2000 Cisco, Inc.
4 * Copyright (c) 1999-2001 Motorola, Inc.
5 * Copyright (c) 2001 Intel Corp.
6 * Copyright (c) 2001 Nokia, Inc.
7 * Copyright (c) 2001 La Monte H.P. Yarroll
8 *

--- 603 unchanged lines hidden (view full) ---

612}
613
614/* Dump the v4 addr to the seq file. */
615static void sctp_v4_seq_dump_addr(struct seq_file *seq, union sctp_addr *addr)
616{
617 seq_printf(seq, "%d.%d.%d.%d ", NIPQUAD(addr->v4.sin_addr));
618}
619
1/* SCTP kernel implementation
2 * (C) Copyright IBM Corp. 2001, 2004
3 * Copyright (c) 1999-2000 Cisco, Inc.
4 * Copyright (c) 1999-2001 Motorola, Inc.
5 * Copyright (c) 2001 Intel Corp.
6 * Copyright (c) 2001 Nokia, Inc.
7 * Copyright (c) 2001 La Monte H.P. Yarroll
8 *

--- 603 unchanged lines hidden (view full) ---

612}
613
614/* Dump the v4 addr to the seq file. */
615static void sctp_v4_seq_dump_addr(struct seq_file *seq, union sctp_addr *addr)
616{
617 seq_printf(seq, "%d.%d.%d.%d ", NIPQUAD(addr->v4.sin_addr));
618}
619
620static void sctp_v4_ecn_capable(struct sock *sk)
621{
622 INET_ECN_xmit(sk);
623}
624
620/* Event handler for inet address addition/deletion events.
621 * The sctp_local_addr_list needs to be protocted by a spin lock since
622 * multiple notifiers (say IPv4 and IPv6) may be running at the same
623 * time and thus corrupt the list.
624 * The reader side is protected with RCU.
625 */
626static int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev,
627 void *ptr)

--- 302 unchanged lines hidden (view full) ---

930 .addr_valid = sctp_v4_addr_valid,
931 .inaddr_any = sctp_v4_inaddr_any,
932 .is_any = sctp_v4_is_any,
933 .available = sctp_v4_available,
934 .scope = sctp_v4_scope,
935 .skb_iif = sctp_v4_skb_iif,
936 .is_ce = sctp_v4_is_ce,
937 .seq_dump_addr = sctp_v4_seq_dump_addr,
625/* Event handler for inet address addition/deletion events.
626 * The sctp_local_addr_list needs to be protocted by a spin lock since
627 * multiple notifiers (say IPv4 and IPv6) may be running at the same
628 * time and thus corrupt the list.
629 * The reader side is protected with RCU.
630 */
631static int sctp_inetaddr_event(struct notifier_block *this, unsigned long ev,
632 void *ptr)

--- 302 unchanged lines hidden (view full) ---

935 .addr_valid = sctp_v4_addr_valid,
936 .inaddr_any = sctp_v4_inaddr_any,
937 .is_any = sctp_v4_is_any,
938 .available = sctp_v4_available,
939 .scope = sctp_v4_scope,
940 .skb_iif = sctp_v4_skb_iif,
941 .is_ce = sctp_v4_is_ce,
942 .seq_dump_addr = sctp_v4_seq_dump_addr,
943 .ecn_capable = sctp_v4_ecn_capable,
938 .net_header_len = sizeof(struct iphdr),
939 .sockaddr_len = sizeof(struct sockaddr_in),
940#ifdef CONFIG_COMPAT
941 .compat_setsockopt = compat_ip_setsockopt,
942 .compat_getsockopt = compat_ip_getsockopt,
943#endif
944};
945

--- 421 unchanged lines hidden ---
944 .net_header_len = sizeof(struct iphdr),
945 .sockaddr_len = sizeof(struct sockaddr_in),
946#ifdef CONFIG_COMPAT
947 .compat_setsockopt = compat_ip_setsockopt,
948 .compat_getsockopt = compat_ip_getsockopt,
949#endif
950};
951

--- 421 unchanged lines hidden ---