Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mkiss.c File Reference
#include <linux/module.h>
#include <linux/bitops.h>
#include <asm/uaccess.h>
#include <linux/crc16.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/interrupt.h>
#include <linux/in.h>
#include <linux/inet.h>
#include <linux/slab.h>
#include <linux/tty.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/major.h>
#include <linux/init.h>
#include <linux/rtnetlink.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/if_arp.h>
#include <linux/jiffies.h>
#include <linux/compat.h>
#include <net/ax25.h>

Go to the source code of this file.

Data Structures

struct  mkiss
 

Macros

#define AX_MTU   236
 
#define END   0300 /* indicates end of frame */
 
#define ESC   0333 /* indicates byte stuffing */
 
#define ESC_END   0334 /* ESC ESC_END means END 'data' */
 
#define ESC_ESC   0335 /* ESC ESC_ESC means ESC 'data' */
 
#define AXF_INUSE   0 /* Channel in use */
 
#define AXF_ESCAPE   1 /* ESC received */
 
#define AXF_ERROR   2 /* Parity, etc. error */
 
#define AXF_KEEPTEST   3 /* Keepalive test flag */
 
#define AXF_OUTWAIT   4 /* is outpacket was flag */
 
#define CRC_MODE_NONE   0
 
#define CRC_MODE_FLEX   1
 
#define CRC_MODE_SMACK   2
 
#define CRC_MODE_FLEX_TEST   3
 
#define CRC_MODE_SMACK_TEST   4
 

Functions

 MODULE_AUTHOR ("Ralf Baechle DL5RB <[email protected]>")
 
 MODULE_DESCRIPTION ("KISS driver for AX.25 over TTYs")
 
 module_param (crc_force, int, 0)
 
 MODULE_PARM_DESC (crc_force,"crc [0 = auto | 1 = none | 2 = flexnet | 3 = smack]")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS_LDISC (N_AX25)
 
 module_init (mkiss_init_driver)
 
 module_exit (mkiss_exit_driver)
 

Macro Definition Documentation

#define AX_MTU   236

Definition at line 43 of file mkiss.c.

#define AXF_ERROR   2 /* Parity, etc. error */

Definition at line 71 of file mkiss.c.

#define AXF_ESCAPE   1 /* ESC received */

Definition at line 70 of file mkiss.c.

#define AXF_INUSE   0 /* Channel in use */

Definition at line 69 of file mkiss.c.

#define AXF_KEEPTEST   3 /* Keepalive test flag */

Definition at line 72 of file mkiss.c.

#define AXF_OUTWAIT   4 /* is outpacket was flag */

Definition at line 73 of file mkiss.c.

#define CRC_MODE_FLEX   1

Definition at line 80 of file mkiss.c.

#define CRC_MODE_FLEX_TEST   3

Definition at line 82 of file mkiss.c.

#define CRC_MODE_NONE   0

Definition at line 79 of file mkiss.c.

#define CRC_MODE_SMACK   2

Definition at line 81 of file mkiss.c.

#define CRC_MODE_SMACK_TEST   4

Definition at line 83 of file mkiss.c.

#define END   0300 /* indicates end of frame */

Definition at line 46 of file mkiss.c.

#define ESC   0333 /* indicates byte stuffing */

Definition at line 47 of file mkiss.c.

#define ESC_END   0334 /* ESC ESC_END means END 'data' */

Definition at line 48 of file mkiss.c.

#define ESC_ESC   0335 /* ESC ESC_ESC means ESC 'data' */

Definition at line 49 of file mkiss.c.

Function Documentation

MODULE_ALIAS_LDISC ( N_AX25  )
MODULE_AUTHOR ( "Ralf Baechle DL5RB <[email protected]>"  )
MODULE_DESCRIPTION ( "KISS driver for AX.25 over TTYs"  )
module_exit ( mkiss_exit_driver  )
module_init ( mkiss_init_driver  )
MODULE_LICENSE ( "GPL"  )
module_param ( crc_force  ,
int  ,
 
)
MODULE_PARM_DESC ( crc_force  ,
"crc "  [0=auto|1=none|2=flexnet|3=smack] 
)