Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
qeth_l3_main.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/bitops.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/etherdevice.h>
#include <linux/mii.h>
#include <linux/ip.h>
#include <linux/ipv6.h>
#include <linux/inetdevice.h>
#include <linux/igmp.h>
#include <linux/slab.h>
#include <linux/if_vlan.h>
#include <net/ip.h>
#include <net/arp.h>
#include <net/route.h>
#include <net/ip6_fib.h>
#include <net/ip6_checksum.h>
#include <net/iucv/af_iucv.h>
#include "qeth_l3.h"

Go to the source code of this file.

Macros

#define KMSG_COMPONENT   "qeth"
 
#define pr_fmt(fmt)   KMSG_COMPONENT ": " fmt
 

Functions

void qeth_l3_ipaddr4_to_string (const __u8 *addr, char *buf)
 
int qeth_l3_string_to_ipaddr4 (const char *buf, __u8 *addr)
 
void qeth_l3_ipaddr6_to_string (const __u8 *addr, char *buf)
 
int qeth_l3_string_to_ipaddr6 (const char *buf, __u8 *addr)
 
void qeth_l3_ipaddr_to_string (enum qeth_prot_versions proto, const __u8 *addr, char *buf)
 
int qeth_l3_string_to_ipaddr (const char *buf, enum qeth_prot_versions proto, __u8 *addr)
 
int qeth_l3_is_addr_covered_by_ipato (struct qeth_card *card, struct qeth_ipaddr *addr)
 
int qeth_l3_delete_ip (struct qeth_card *card, struct qeth_ipaddr *addr)
 
int qeth_l3_add_ip (struct qeth_card *card, struct qeth_ipaddr *addr)
 
struct qeth_ipaddrqeth_l3_get_addr_buffer (enum qeth_prot_versions prot)
 
void qeth_l3_set_ip_addr_list (struct qeth_card *card)
 
int qeth_l3_setrouting_v4 (struct qeth_card *card)
 
int qeth_l3_setrouting_v6 (struct qeth_card *card)
 
int qeth_l3_add_ipato_entry (struct qeth_card *card, struct qeth_ipato_entry *new)
 
void qeth_l3_del_ipato_entry (struct qeth_card *card, enum qeth_prot_versions proto, u8 *addr, int mask_bits)
 
int qeth_l3_add_vipa (struct qeth_card *card, enum qeth_prot_versions proto, const u8 *addr)
 
void qeth_l3_del_vipa (struct qeth_card *card, enum qeth_prot_versions proto, const u8 *addr)
 
int qeth_l3_add_rxip (struct qeth_card *card, enum qeth_prot_versions proto, const u8 *addr)
 
void qeth_l3_del_rxip (struct qeth_card *card, enum qeth_prot_versions proto, const u8 *addr)
 
int qeth_l3_get_cast_type (struct qeth_card *card, struct sk_buff *skb)
 
 EXPORT_SYMBOL_GPL (qeth_l3_discipline)
 
 module_init (qeth_l3_init)
 
 module_exit (qeth_l3_exit)
 
 MODULE_AUTHOR ("Frank Blaschka <[email protected]>")
 
 MODULE_DESCRIPTION ("qeth layer 3 discipline")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct qeth_discipline qeth_l3_discipline
 

Macro Definition Documentation

#define KMSG_COMPONENT   "qeth"

Definition at line 9 of file qeth_l3_main.c.

#define pr_fmt (   fmt)    KMSG_COMPONENT ": " fmt

Definition at line 10 of file qeth_l3_main.c.

Function Documentation

EXPORT_SYMBOL_GPL ( qeth_l3_discipline  )
MODULE_AUTHOR ( "Frank Blaschka <[email protected]>"  )
MODULE_DESCRIPTION ( "qeth layer 3 discipline"  )
module_exit ( qeth_l3_exit  )
module_init ( qeth_l3_init  )
MODULE_LICENSE ( "GPL"  )
int qeth_l3_add_ip ( struct qeth_card card,
struct qeth_ipaddr addr 
)

Definition at line 290 of file qeth_l3_main.c.

int qeth_l3_add_ipato_entry ( struct qeth_card card,
struct qeth_ipato_entry new 
)

Definition at line 718 of file qeth_l3_main.c.

int qeth_l3_add_rxip ( struct qeth_card card,
enum qeth_prot_versions  proto,
const u8 addr 
)

Definition at line 833 of file qeth_l3_main.c.

int qeth_l3_add_vipa ( struct qeth_card card,
enum qeth_prot_versions  proto,
const u8 addr 
)

Definition at line 768 of file qeth_l3_main.c.

void qeth_l3_del_ipato_entry ( struct qeth_card card,
enum qeth_prot_versions  proto,
u8 addr,
int  mask_bits 
)

Definition at line 744 of file qeth_l3_main.c.

void qeth_l3_del_rxip ( struct qeth_card card,
enum qeth_prot_versions  proto,
const u8 addr 
)

Definition at line 871 of file qeth_l3_main.c.

void qeth_l3_del_vipa ( struct qeth_card card,
enum qeth_prot_versions  proto,
const u8 addr 
)

Definition at line 806 of file qeth_l3_main.c.

int qeth_l3_delete_ip ( struct qeth_card card,
struct qeth_ipaddr addr 
)

Definition at line 271 of file qeth_l3_main.c.

struct qeth_ipaddr* qeth_l3_get_addr_buffer ( enum qeth_prot_versions  prot)
read

Definition at line 309 of file qeth_l3_main.c.

int qeth_l3_get_cast_type ( struct qeth_card card,
struct sk_buff skb 
)
inline

Definition at line 2698 of file qeth_l3_main.c.

void qeth_l3_ipaddr4_to_string ( const __u8 addr,
char buf 
)

Definition at line 58 of file qeth_l3_main.c.

void qeth_l3_ipaddr6_to_string ( const __u8 addr,
char buf 
)

Definition at line 81 of file qeth_l3_main.c.

void qeth_l3_ipaddr_to_string ( enum qeth_prot_versions  proto,
const __u8 addr,
char buf 
)

Definition at line 136 of file qeth_l3_main.c.

int qeth_l3_is_addr_covered_by_ipato ( struct qeth_card card,
struct qeth_ipaddr addr 
)

Definition at line 170 of file qeth_l3_main.c.

void qeth_l3_set_ip_addr_list ( struct qeth_card card)

Definition at line 425 of file qeth_l3_main.c.

int qeth_l3_setrouting_v4 ( struct qeth_card card)

Definition at line 657 of file qeth_l3_main.c.

int qeth_l3_setrouting_v6 ( struct qeth_card card)

Definition at line 677 of file qeth_l3_main.c.

int qeth_l3_string_to_ipaddr ( const char buf,
enum qeth_prot_versions  proto,
__u8 addr 
)

Definition at line 145 of file qeth_l3_main.c.

int qeth_l3_string_to_ipaddr4 ( const char buf,
__u8 addr 
)

Definition at line 63 of file qeth_l3_main.c.

int qeth_l3_string_to_ipaddr6 ( const char buf,
__u8 addr 
)

Definition at line 86 of file qeth_l3_main.c.

Variable Documentation

struct qeth_discipline qeth_l3_discipline
Initial value:
= {
.start_poll = qeth_qdio_start_poll,
.recover = qeth_l3_recover,
.setup = qeth_l3_probe_device,
.remove = qeth_l3_remove_device,
.set_online = qeth_l3_set_online,
.set_offline = qeth_l3_set_offline,
.shutdown = qeth_l3_shutdown,
.freeze = qeth_l3_pm_suspend,
.thaw = qeth_l3_pm_resume,
.restore = qeth_l3_pm_resume,
}

Definition at line 3581 of file qeth_l3_main.c.