获取TCP套接字的源MAC地址 [英] Obtain Source MAC address of a TCP Socket

查看:1125
本文介绍了获取TCP套接字的源MAC地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以获取TCP套接字的源MAC地址?如果是这样,你能提供一个快速的方法吗?

Is it possible to obtain the source MAC address of a TCP socket?  If so, can you provide a quick how to?

推荐答案

在TCP / IP标准中没有这样的支持。您可以使用ARP数据包发现IP到MAC地址,但这仅适用于一个LAN网段。要了解除此之外的MAC地址,您需要手动收集信息。
您可能有更深层次的问题。 MAC地址很容易被伪造。如果您想要传输层安全性,您可能需要查看SSL / TLS和客户端证书。
No such support in the TCP/IP standard. You can use ARP packets to discover IP to MAC addresses, but that only works within one LAN segment. To know the MAC address beyond that you need to have the information collected manually.
You might have a deeper problem. MAC addresses can be easily faked. If you want transport layer security you may need to take a look at SSL/TLS and client-side certificates.


这篇关于获取TCP套接字的源MAC地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆