Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Windows) New table: connectivity #5500

Merged
merged 15 commits into from Oct 4, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
windows/connectivity: Fix constants
woodruffw committed Oct 4, 2019

Verified

This commit was signed with the committer’s verified signature. The key has expired.
woodruffw William Woodruff
commit e87cb8e028701dd4a0986baab10507c9115d71c7
6 changes: 3 additions & 3 deletions osquery/tables/networking/windows/connectivity.cpp
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ QueryData genConnectivity(QueryContext& context) {
Row r;

INetworkListManager *mgr = nullptr;
HRESULT res = CoCreateInstance(CLSID_NetworkListManager, NULL, CLSCTX_ALL, IID_NetworkListManager, &mgr);
HRESULT res = CoCreateInstance(CLSID_NetworkListManager, NULL, CLSCTX_ALL, IID_INetworkListManager, &mgr);

if (res != S_OK) {
TLOG << "Failed to instantiate INetworkListManager";
@@ -43,10 +43,10 @@ QueryData genConnectivity(QueryContext& context) {
r["ipv4_no_traffic"] = INTEGER(connectivity & NLM_CONNECTIVITY_IPV4_NOTRAFFIC);
r["ipv6_no_traffic"] = INTEGER(connectivity & NLM_CONNECTIVITY_IPV6_NOTRAFFIC);
r["ipv4_subnet"] = INTEGER(connectivity & NLM_CONNECTIVITY_IPV4_SUBNET);
r["ipv4_local_network"] = INTEGER(connectivity & NLM_CONNECTIVITY_IPV4_LOCAL_NETWORK);
r["ipv4_local_network"] = INTEGER(connectivity & NLM_CONNECTIVITY_IPV4_LOCALNETWORK);
r["ipv4_internet"] = INTEGER(connectivity & NLM_CONNECTIVITY_IPV4_INTERNET);
r["ipv6_subnet"] = INTEGER(connectivity & NLM_CONNECTIVITY_IPV6_SUBNET);
r["ipv6_local_network"] = INTEGER(connectivity & NLM_CONNECTIVITY_IPV6_LOCAL_NETWORK);
r["ipv6_local_network"] = INTEGER(connectivity & NLM_CONNECTIVITY_IPV6_LOCALNETWORK);
r["ipv6_internet"] = INTEGER(connectivity & NLM_CONNECTIVITY_IPV6_INTERNET);

mgr->Release();