Location:
Search - Get_MAC
Search list
Description:
Platform: |
Size: 522 |
Author: |
Hits:
Description: sco unix下获取网卡程序-sco acquisition card procedures
Platform: |
Size: 789 |
Author: 隋平 |
Hits:
Description: VC6.0写的获取网卡上的MAC地址小程序,步骤是建立适配器结构对象->分配内存->调用函数GetAdaptersInfo()获取适配器信息->显示MAC地址
Platform: |
Size: 6654 |
Author: chen |
Hits:
Description: sco unix下获取网卡程序-sco acquisition card procedures
Platform: |
Size: 1024 |
Author: 隋平 |
Hits:
Description: 组装并利用winpcap提供的函数发送arp请求报文,分析捕获到的arp响应报文,从中得到的源MAC地址就是本地网卡的MAC地址。
在得到本机网络接口的MAC地址和其上绑定的IP地址后,程序以本地网卡的身份向以太网其他主机输入的目的IP地址发送arp请求,并截获其回应,通过解析其中的源MAC地址,可以得到该IP地址对应的MAC地址。
-Assembly and use WinPcap to provide a function to send arp request packet, analysis captured the arp response packet, which has been the source MAC address is the MAC address of local network adapter. Upon the consent of this machine network interface MAC address and its IP address binding, the procedure to the identity of the local network adapter to the Ethernet input purpose other host IP address to send arp request and intercepted its response, through which to resolve the source MAC address, you can get the IP address of the corresponding MAC address.
Platform: |
Size: 39936 |
Author: cx |
Hits:
Description: VC6.0写的获取网卡上的MAC地址小程序,步骤是建立适配器结构对象->分配内存->调用函数GetAdaptersInfo()获取适配器信息->显示MAC地址-VC6.0 write access to the network card on the MAC address of small procedures, the steps is to establish the structure of the object adapter-> allocate memory-> call function GetAdaptersInfo () to obtain adapter information-> show the MAC address
Platform: |
Size: 115712 |
Author: chen |
Hits:
Description: 演示如何在linux下,使用c编程获取网卡mac地址。-Demonstrates how to linux, using c programming for network card mac address.
Platform: |
Size: 1024 |
Author: baijing |
Hits:
Description: 介绍了如何获得本地计算机的MAC地址,希望给大家一点启发。-Describes how to get the local computer' s MAC address, and want to give you some inspiration.
Platform: |
Size: 13312 |
Author: 刘丽 |
Hits:
Description: 本程序用户获取主机的IP地址和MAC地址,头文件与函数原型如下
#include "getIP.h"
int get_ip(char *ipaddr, char *netmask, const char *ethname)
#include "getIP.h"
int get_mac(char *mac)
以下是get_ip函数简单使用范例
//定义IP和MAC所需要的存储空间
char ethname[] = "eth0"
char ipaddr[20] //IP地址最长为16个字符
char netmask[20] //子网掩码最长为18个字符
//获取IP地址
get_ip(ipaddr,netmask,ethname)
//输出结果
printf(" s\n",ipaddr)
printf(" s\n",netmask)
以下是get_mac函数简单使用范例
-The program user access to the host' s IP address and MAC address, the following function prototype header file# include " getIP.h" int get_ip (char* ipaddr, char* netmask, const char* ethname) # include " getIP.h" int get_mac (char* mac) use the following simple example is get_ip function// define the IP and MAC need storage space char ethname [] = " eth0" char ipaddr [20] // IP address of up to 16 characters char netmask [20] // mask for up to 18 characters// Obtain an IP address get_ip (ipaddr, netmask, ethname) // output printf (" s \ n" , ipaddr) printf ( " s \ n" , netmask) use the following simple example is get_mac function
Platform: |
Size: 6144 |
Author: quietojlt |
Hits: