network

来源:互联网 发布:樱井知香2010年番号 编辑:程序博客网 时间:2024/06/06 00:11

1. 

$ man netdevice

NAME
       netdevice - low-level access to Linux network devices


SYNOPSIS
       #include <sys/ioctl.h>
       #include <net/if.h>


DESCRIPTION
       This man page describes the sockets interface which is used to configure network devices.

       Linux supports some standard ioctls to configure network devices.  They can be used on any socket's file descriptor
       regardless of the family or type.  They pass an ifreq structure:


2.

$ man 7 netlink

NAME
       netlink - communication between kernel and user space (AF_NETLINK)


SYNOPSIS
       #include <asm/types.h>
       #include <sys/socket.h>
       #include <linux/netlink.h>


       netlink_socket = socket(AF_NETLINK, socket_type, netlink_family);


3.

$ man 7 rtnetlink

NAME
       rtnetlink - Linux IPv4 routing socket


SYNOPSIS
       #include <asm/types.h>
       #include <linux/if_link.h>
       #include <linux/netlink.h>
       #include <linux/rtnetlink.h>
       #include <sys/socket.h>


       rtnetlink_socket = socket(AF_NETLINK, int socket_type, NETLINK_ROUTE);





0 0
原创粉丝点击