FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME相关问题 [英] FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME related questions

查看:62
本文介绍了FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME相关问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我已在FWPM_LAYER_ALE_AUTH_CONNECT_V4图层注册了一个标注程序。我对FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME标志有两个问题:

I have registered a callout routine at FWPM_LAYER_ALE_AUTH_CONNECT_V4 layer. I have two questions on FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME flag:

1。如果我通过用户模式应用程序启动到主机名的出站Internet连接,那么该标志将携带什么值(查看描述我想它会带有主机名,但我对文档中指定的'机器名'感到困惑。

1. If I initiate an outbound internet connection to a hostname by a user mode application, what value would this flag carry (Looking at the description I guess it would carry the hostname but I am bit confused with 'machine name' as specified in the documentation.

2.我在调出例程中添加了此代码:

2. I have added this code in the callout routine:

i = FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME;

ValueType =  inFixedValues-> incomingValue [FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME] .value.type;

PeerName = inFixedValues-> incomingValue [FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME] .value.byteBlob;

i = FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME;
ValueType =  inFixedValues->incomingValue[FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME].value.type;
PeerName = inFixedValues->incomingValue[FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME].value.byteBlob;

执行后上面提到的片段,变量是:

After execution of the snippet mentioned above, the variables are:

1 = 0x1D

ValueType = 0

PeerName = NULL

1 = 0x1D
ValueType = 0
PeerName = NULL

我在这里做错了什么?

推荐答案

PEER_NAME要求使用安全套接字( http://msdn.mi crosoft.com/en-us/library/bb394823(v=vs.85).aspx )群组。如果未使用安全套接字,则该值将为空(如您所见的
)。 使用安全套接字后,该值应该是对等方的主机名或对等方的FQDN(取决于您与安全套接字的连接方式)。

PEER_NAME requires using secure sockets (http://msdn.microsoft.com/en-us/library/bb394823(v=vs.85).aspx).  If secure sockets are not in use, then the value will be empty (as you are seeing).  Once secure sockets are used, then the value should be either the hostname of the peer, or the FQDN of the peer (depending on how you connect with the secure socket).

希望这会有所帮助,


这篇关于FWPS_FIELD_ALE_AUTH_CONNECT_V4_PEER_NAME相关问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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