404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.14.146.45: ~ $
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * ioctl definitions for qeth driver
 *
 * Copyright IBM Corp. 2004
 *
 * Author(s):	Thomas Spatzier <tspat@de.ibm.com>
 *
 */
#ifndef __ASM_S390_QETH_IOCTL_H__
#define __ASM_S390_QETH_IOCTL_H__
#include <linux/types.h>
#include <linux/ioctl.h>

#define SIOC_QETH_ARP_SET_NO_ENTRIES    (SIOCDEVPRIVATE)
#define SIOC_QETH_ARP_QUERY_INFO        (SIOCDEVPRIVATE + 1)
#define SIOC_QETH_ARP_ADD_ENTRY         (SIOCDEVPRIVATE + 2)
#define SIOC_QETH_ARP_REMOVE_ENTRY      (SIOCDEVPRIVATE + 3)
#define SIOC_QETH_ARP_FLUSH_CACHE       (SIOCDEVPRIVATE + 4)
#define SIOC_QETH_ADP_SET_SNMP_CONTROL  (SIOCDEVPRIVATE + 5)
#define SIOC_QETH_GET_CARD_TYPE         (SIOCDEVPRIVATE + 6)
#define SIOC_QETH_QUERY_OAT		(SIOCDEVPRIVATE + 7)

struct qeth_arp_cache_entry {
	__u8  macaddr[6];
	__u8  reserved1[2];
	__u8  ipaddr[16]; /* for both  IPv4 and IPv6 */
	__u8  reserved2[32];
} __attribute__ ((packed));

enum qeth_arp_ipaddrtype {
	QETHARP_IP_ADDR_V4 = 1,
	QETHARP_IP_ADDR_V6 = 2,
};
struct qeth_arp_entrytype {
	__u8 mac;
	__u8 ip;
} __attribute__((packed));

#define QETH_QARP_MEDIASPECIFIC_BYTES 32
#define QETH_QARP_MACADDRTYPE_BYTES 1
struct qeth_arp_qi_entry7 {
	__u8 media_specific[QETH_QARP_MEDIASPECIFIC_BYTES];
	struct qeth_arp_entrytype type;
	__u8 macaddr[6];
	__u8 ipaddr[4];
} __attribute__((packed));

struct qeth_arp_qi_entry7_ipv6 {
	__u8 media_specific[QETH_QARP_MEDIASPECIFIC_BYTES];
	struct qeth_arp_entrytype type;
	__u8 macaddr[6];
	__u8 ipaddr[16];
} __attribute__((packed));

struct qeth_arp_qi_entry7_short {
	struct qeth_arp_entrytype type;
	__u8 macaddr[6];
	__u8 ipaddr[4];
} __attribute__((packed));

struct qeth_arp_qi_entry7_short_ipv6 {
	struct qeth_arp_entrytype type;
	__u8 macaddr[6];
	__u8 ipaddr[16];
} __attribute__((packed));

struct qeth_arp_qi_entry5 {
	__u8 media_specific[QETH_QARP_MEDIASPECIFIC_BYTES];
	struct qeth_arp_entrytype type;
	__u8 ipaddr[4];
} __attribute__((packed));

struct qeth_arp_qi_entry5_ipv6 {
	__u8 media_specific[QETH_QARP_MEDIASPECIFIC_BYTES];
	struct qeth_arp_entrytype type;
	__u8 ipaddr[16];
} __attribute__((packed));

struct qeth_arp_qi_entry5_short {
	struct qeth_arp_entrytype type;
	__u8 ipaddr[4];
} __attribute__((packed));

struct qeth_arp_qi_entry5_short_ipv6 {
	struct qeth_arp_entrytype type;
	__u8 ipaddr[16];
} __attribute__((packed));
/*
 * can be set by user if no "media specific information" is wanted
 * -> saves a lot of space in user space buffer
 */
#define QETH_QARP_STRIP_ENTRIES  0x8000
#define QETH_QARP_WITH_IPV6	 0x4000
#define QETH_QARP_REQUEST_MASK   0x00ff

/* data sent to user space as result of query arp ioctl */
#define QETH_QARP_USER_DATA_SIZE 20000
#define QETH_QARP_MASK_OFFSET    4
#define QETH_QARP_ENTRIES_OFFSET 6
struct qeth_arp_query_user_data {
	union {
		__u32 data_len;		/* set by user space program */
		__u32 no_entries;	/* set by kernel */
	} u;
	__u16 mask_bits;
	char *entries;
} __attribute__((packed));

struct qeth_query_oat_data {
	__u32 command;
	__u32 buffer_len;
	__u32 response_len;
	__u64 ptr;
};
#endif /* __ASM_S390_QETH_IOCTL_H__ */

Filemanager

Name Type Size Permission Actions
Kbuild File 321 B 0644
auxvec.h File 214 B 0644
bitsperlong.h File 293 B 0644
bpf_perf_event.h File 226 B 0644
byteorder.h File 188 B 0644
chpid.h File 456 B 0644
chsc.h File 2.96 KB 0644
clp.h File 549 B 0644
cmb.h File 1.87 KB 0644
dasd.h File 12.4 KB 0644
debug.h File 857 B 0644
guarded_storage.h File 1.18 KB 0644
hypfs.h File 1.35 KB 0644
ioctls.h File 191 B 0644
ipcbuf.h File 738 B 0644
kvm.h File 7.73 KB 0644
kvm_para.h File 224 B 0644
kvm_perf.h File 474 B 0644
monwriter.h File 939 B 0644
msgbuf.h File 1.14 KB 0644
perf_regs.h File 887 B 0644
pkey.h File 4.35 KB 0644
posix_types.h File 1.4 KB 0644
ptrace.h File 11.39 KB 0644
qeth.h File 3.05 KB 0644
schid.h File 332 B 0644
sclp_ctl.h File 465 B 0644
sembuf.h File 864 B 0644
setup.h File 292 B 0644
shmbuf.h File 1.34 KB 0644
sie.h File 9.25 KB 0644
sigcontext.h File 1.73 KB 0644
siginfo.h File 302 B 0644
signal.h File 3.26 KB 0644
socket.h File 2.24 KB 0644
stat.h File 2.9 KB 0644
statfs.h File 1.03 KB 0644
sthyi.h File 178 B 0644
tape390.h File 2.76 KB 0644
termios.h File 1.14 KB 0644
types.h File 525 B 0644
ucontext.h File 1.18 KB 0644
unistd.h File 12.32 KB 0644
virtio-ccw.h File 444 B 0644
vmcp.h File 737 B 0644
vtoc.h File 7.36 KB 0644
zcrypt.h File 10.94 KB 0644