Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
protocol.h File Reference
#include <linux/in6.h>

Go to the source code of this file.

Data Structures

struct  net_protocol
 
struct  inet_protosw
 

Macros

#define MAX_INET_PROTOS   256
 
#define INET_PROTOSW_REUSE   0x01 /* Are ports automatically reusable? */
 
#define INET_PROTOSW_PERMANENT   0x02 /* Permanent protocols are unremovable. */
 
#define INET_PROTOSW_ICSK   0x04 /* Is this an inet_connection_sock? */
 

Functions

int inet_add_protocol (const struct net_protocol *prot, unsigned char num)
 
int inet_del_protocol (const struct net_protocol *prot, unsigned char num)
 
void inet_register_protosw (struct inet_protosw *p)
 
void inet_unregister_protosw (struct inet_protosw *p)
 

Variables

struct net_protocol __rcuinet_protos [MAX_INET_PROTOS]
 

Macro Definition Documentation

#define INET_PROTOSW_ICSK   0x04 /* Is this an inet_connection_sock? */

Definition at line 96 of file protocol.h.

#define INET_PROTOSW_PERMANENT   0x02 /* Permanent protocols are unremovable. */

Definition at line 95 of file protocol.h.

#define INET_PROTOSW_REUSE   0x01 /* Are ports automatically reusable? */

Definition at line 94 of file protocol.h.

#define MAX_INET_PROTOS   256

Definition at line 36 of file protocol.h.

Function Documentation

int inet_add_protocol ( const struct net_protocol prot,
unsigned char  num 
)

Definition at line 37 of file protocol.c.

int inet_del_protocol ( const struct net_protocol prot,
unsigned char  num 
)

Definition at line 48 of file protocol.c.

void inet_register_protosw ( struct inet_protosw p)

Definition at line 1081 of file af_inet.c.

void inet_unregister_protosw ( struct inet_protosw p)

Definition at line 1134 of file af_inet.c.

Variable Documentation