Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
output.c File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/wait.h>
#include <linux/time.h>
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <net/inet_ecn.h>
#include <net/ip.h>
#include <net/icmp.h>
#include <net/net_namespace.h>
#include <linux/socket.h>
#include <net/sock.h>
#include <net/sctp/sctp.h>
#include <net/sctp/sm.h>
#include <net/sctp/checksum.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 

Functions

struct sctp_packetsctp_packet_config (struct sctp_packet *packet, __u32 vtag, int ecn_capable)
 
struct sctp_packetsctp_packet_init (struct sctp_packet *packet, struct sctp_transport *transport, __u16 sport, __u16 dport)
 
void sctp_packet_free (struct sctp_packet *packet)
 
sctp_xmit_t sctp_packet_transmit_chunk (struct sctp_packet *packet, struct sctp_chunk *chunk, int one_packet)
 
sctp_xmit_t sctp_packet_append_chunk (struct sctp_packet *packet, struct sctp_chunk *chunk)
 
int sctp_packet_transmit (struct sctp_packet *packet)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 44 of file output.c.

Function Documentation

sctp_xmit_t sctp_packet_append_chunk ( struct sctp_packet packet,
struct sctp_chunk chunk 
)

Definition at line 333 of file output.c.

struct sctp_packet* sctp_packet_config ( struct sctp_packet packet,
__u32  vtag,
int  ecn_capable 
)
read

Definition at line 91 of file output.c.

void sctp_packet_free ( struct sctp_packet packet)

Definition at line 144 of file output.c.

struct sctp_packet* sctp_packet_init ( struct sctp_packet packet,
struct sctp_transport transport,
__u16  sport,
__u16  dport 
)
read

Definition at line 115 of file output.c.

int sctp_packet_transmit ( struct sctp_packet packet)

6.10 Bundling

An endpoint bundles chunks by simply including multiple chunks in one outbound SCTP packet. ...

3.2 Chunk Field Descriptions

The total length of a chunk (including Type, Length and Value fields) MUST be a multiple of 4 bytes. If the length of the chunk is not a multiple of 4 bytes, the sender MUST pad the chunk with all zero bytes and this padding is not included in the chunk length field. The sender should never pad with more than 3 bytes.

[This whole comment explains WORD_ROUND() below.]

Definition at line 391 of file output.c.

sctp_xmit_t sctp_packet_transmit_chunk ( struct sctp_packet packet,
struct sctp_chunk chunk,
int  one_packet 
)

Definition at line 166 of file output.c.