structs.h (b10778a00d40b3d9fdaaf5891e802794781ff71c) structs.h (e0eb093e794452791b0f932a0120f410f614ad82)
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 *
7 * This file is part of the SCTP kernel implementation
8 *

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

526 int send_error;
527 u8 send_failed:1,
528 can_abandon:1, /* can chunks from this message can be abandoned. */
529 can_delay; /* should this message be Nagle delayed */
530};
531
532struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *,
533 struct sctp_sndrcvinfo *,
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 *
7 * This file is part of the SCTP kernel implementation
8 *

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

526 int send_error;
527 u8 send_failed:1,
528 can_abandon:1, /* can chunks from this message can be abandoned. */
529 can_delay; /* should this message be Nagle delayed */
530};
531
532struct sctp_datamsg *sctp_datamsg_from_user(struct sctp_association *,
533 struct sctp_sndrcvinfo *,
534 struct msghdr *, int len);
534 struct iov_iter *);
535void sctp_datamsg_free(struct sctp_datamsg *);
536void sctp_datamsg_put(struct sctp_datamsg *);
537void sctp_chunk_fail(struct sctp_chunk *, int error);
538int sctp_chunk_abandoned(struct sctp_chunk *);
539
540/* RFC2960 1.4 Key Terms
541 *
542 * o Chunk: A unit of information within an SCTP packet, consisting of

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

642 auth:1, /* IN: was auth'ed | OUT: needs auth */
643 has_asconf:1, /* IN: have seen an asconf before */
644 tsn_missing_report:2, /* Data chunk missing counter. */
645 fast_retransmit:2; /* Is this chunk fast retransmitted? */
646};
647
648void sctp_chunk_hold(struct sctp_chunk *);
649void sctp_chunk_put(struct sctp_chunk *);
535void sctp_datamsg_free(struct sctp_datamsg *);
536void sctp_datamsg_put(struct sctp_datamsg *);
537void sctp_chunk_fail(struct sctp_chunk *, int error);
538int sctp_chunk_abandoned(struct sctp_chunk *);
539
540/* RFC2960 1.4 Key Terms
541 *
542 * o Chunk: A unit of information within an SCTP packet, consisting of

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

642 auth:1, /* IN: was auth'ed | OUT: needs auth */
643 has_asconf:1, /* IN: have seen an asconf before */
644 tsn_missing_report:2, /* Data chunk missing counter. */
645 fast_retransmit:2; /* Is this chunk fast retransmitted? */
646};
647
648void sctp_chunk_hold(struct sctp_chunk *);
649void sctp_chunk_put(struct sctp_chunk *);
650int sctp_user_addto_chunk(struct sctp_chunk *chunk, int off, int len,
651 struct iovec *data);
650int sctp_user_addto_chunk(struct sctp_chunk *chunk, int len,
651 struct iov_iter *from);
652void sctp_chunk_free(struct sctp_chunk *);
653void *sctp_addto_chunk(struct sctp_chunk *, int len, const void *data);
654struct sctp_chunk *sctp_chunkify(struct sk_buff *,
655 const struct sctp_association *,
656 struct sock *);
657void sctp_init_addrs(struct sctp_chunk *, union sctp_addr *,
658 union sctp_addr *);
659const union sctp_addr *sctp_source(const struct sctp_chunk *chunk);

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

1111 int *addrs_len,
1112 gfp_t gfp);
1113int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw, int len,
1114 __u16 port, gfp_t gfp);
1115
1116sctp_scope_t sctp_scope(const union sctp_addr *);
1117int sctp_in_scope(struct net *net, const union sctp_addr *addr, const sctp_scope_t scope);
1118int sctp_is_any(struct sock *sk, const union sctp_addr *addr);
652void sctp_chunk_free(struct sctp_chunk *);
653void *sctp_addto_chunk(struct sctp_chunk *, int len, const void *data);
654struct sctp_chunk *sctp_chunkify(struct sk_buff *,
655 const struct sctp_association *,
656 struct sock *);
657void sctp_init_addrs(struct sctp_chunk *, union sctp_addr *,
658 union sctp_addr *);
659const union sctp_addr *sctp_source(const struct sctp_chunk *chunk);

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

1111 int *addrs_len,
1112 gfp_t gfp);
1113int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw, int len,
1114 __u16 port, gfp_t gfp);
1115
1116sctp_scope_t sctp_scope(const union sctp_addr *);
1117int sctp_in_scope(struct net *net, const union sctp_addr *addr, const sctp_scope_t scope);
1118int sctp_is_any(struct sock *sk, const union sctp_addr *addr);
1119int sctp_addr_is_valid(const union sctp_addr *addr);
1120int sctp_is_ep_boundall(struct sock *sk);
1121
1122
1123/* What type of endpoint? */
1124typedef enum {
1125 SCTP_EP_TYPE_SOCKET,
1126 SCTP_EP_TYPE_ASSOCIATION,
1127} sctp_endpoint_type_t;

--- 807 unchanged lines hidden ---
1119int sctp_is_ep_boundall(struct sock *sk);
1120
1121
1122/* What type of endpoint? */
1123typedef enum {
1124 SCTP_EP_TYPE_SOCKET,
1125 SCTP_EP_TYPE_ASSOCIATION,
1126} sctp_endpoint_type_t;

--- 807 unchanged lines hidden ---