/* * net-sysfs.c - network device class and attributes * * Copyright (c) 2003 Stephen Hemminger <shemminger@osdl.org> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */#include<linux/capability.h>#include<linux/kernel.h>#include<linux/netdevice.h>#include<linux/if_arp.h>#include<linux/slab.h>#include<linux/nsproxy.h>#include<net/sock.h>#include<net/net_namespace.h>#include<linux/rtnetlink.h>#include<linux/wireless.h>#include<linux/vmalloc.h>#include<linux/export.h>#include<linux/jiffies.h>#include<net/wext.h>#include"net-sysfs.h"#ifdef CONFIG_SYSFSstaticconstcharfmt_hex[]="%#x\n";staticconstcharfmt_long_hex[]="%#lx\n";staticconstcharfmt_dec[]="%d\n";staticconstcharfmt_udec[]="%u\n";staticconstcharfmt_ulong[]="%lu\n";staticconstcharfmt_u64[]="%llu