2 * drivers/s390/net/qeth_l3.h
4 * Copyright IBM Corp. 2007
5 * Author(s): Utz Bacher <utz.bacher@de.ibm.com>,
6 * Frank Pavlic <fpavlic@de.ibm.com>,
7 * Thomas Spatzier <tspat@de.ibm.com>,
8 * Frank Blaschka <frank.blaschka@de.ibm.com>
14 #include "qeth_core.h"
17 struct list_head entry;
18 enum qeth_ip_types type;
19 enum qeth_ipa_setdelip_flags set_flags;
20 enum qeth_ipa_setdelip_flags del_flags;
23 enum qeth_prot_versions proto;
24 unsigned char mac[OSA_ADDR_LEN];
37 struct qeth_ipato_entry {
38 struct list_head entry;
39 enum qeth_prot_versions proto;
45 void qeth_l3_ipaddr4_to_string(const __u8 *, char *);
46 int qeth_l3_string_to_ipaddr4(const char *, __u8 *);
47 void qeth_l3_ipaddr6_to_string(const __u8 *, char *);
48 int qeth_l3_string_to_ipaddr6(const char *, __u8 *);
49 void qeth_l3_ipaddr_to_string(enum qeth_prot_versions, const __u8 *, char *);
50 int qeth_l3_string_to_ipaddr(const char *, enum qeth_prot_versions, __u8 *);
51 int qeth_l3_create_device_attributes(struct device *);
52 void qeth_l3_remove_device_attributes(struct device *);
53 int qeth_l3_setrouting_v4(struct qeth_card *);
54 int qeth_l3_setrouting_v6(struct qeth_card *);
55 int qeth_l3_add_ipato_entry(struct qeth_card *, struct qeth_ipato_entry *);
56 void qeth_l3_del_ipato_entry(struct qeth_card *, enum qeth_prot_versions,
58 int qeth_l3_add_vipa(struct qeth_card *, enum qeth_prot_versions, const u8 *);
59 void qeth_l3_del_vipa(struct qeth_card *, enum qeth_prot_versions, const u8 *);
60 int qeth_l3_add_rxip(struct qeth_card *, enum qeth_prot_versions, const u8 *);
61 void qeth_l3_del_rxip(struct qeth_card *card, enum qeth_prot_versions,
64 #endif /* __QETH_L3_H__ */