免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2986 | 回复: 0
打印 上一主题 下一主题

netlink的NETLINK_ARPD协议是不是不能用了阿? 还有netlink怎么获取arp表 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-22 22:07 |只看该作者 |倒序浏览
我的linux/netlink.h怎么没有这个宏定义呢

#include <linux/socket.h> /* for sa_family_t */
#include <linux/types.h>

#define NETLINK_ROUTE                0        /* Routing/device hook                       
        */
#define NETLINK_UNUSED                1        /* Unused number                       
        */
#define NETLINK_USERSOCK        2        /* Reserved for user mode socket protoco
ls         */
#define NETLINK_FIREWALL        3        /* Firewalling hook                       
        */
#define NETLINK_INET_DIAG        4        /* INET socket monitoring               
        */
#define NETLINK_NFLOG                5        /* netfilter/iptables ULOG */
#define NETLINK_XFRM                6        /* ipsec */
#define NETLINK_SELINUX                7        /* SELinux event notifications */
#define NETLINK_ISCSI                8        /* Open-iSCSI */
#define NETLINK_AUDIT                9        /* auditing */
#define NETLINK_FIB_LOOKUP        10       
#define NETLINK_CONNECTOR        11
#define NETLINK_NETFILTER        12        /* netfilter subsystem */
#define NETLINK_IP6_FW                13
#define NETLINK_DNRTMSG                14        /* DECnet routing messages */
#define NETLINK_KOBJECT_UEVENT        15        /* Kernel messages to userspace */
#define NETLINK_GENERIC                16
/* leave room for NETLINK_DM (DM Events) */
#define NETLINK_SCSITRANSPORT        18        /* SCSI Transports */
#define NETLINK_ECRYPTFS        19

#define MAX_LINKS 32               

没有NETLINK_ARPD协议的定义

还有不知道NETLINK_ARPD协议所要用的结构是什么?

用netlink怎么获取arp表?
我的linux内核是2.6.27.29
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP