OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:diag_msg
(Results
1 - 3
of
3
) sorted by null
/external/strace/
socketutils.c
140
const struct inet_diag_msg *const
diag_msg
= data;
local
144
if (data_len < (int) NLMSG_LENGTH(sizeof(*
diag_msg
)))
146
if (
diag_msg
->idiag_inode != inode)
149
switch (
diag_msg
->idiag_family) {
165
if (!inet_ntop(
diag_msg
->idiag_family,
diag_msg
->id.idiag_src,
169
if (
diag_msg
->id.idiag_dport ||
170
memcmp(zero_addr,
diag_msg
->id.idiag_dst, addr_size)) {
173
if (!inet_ntop(
diag_msg
->idiag_family,
diag_msg
->id.idiag_dst
270
const struct unix_
diag_msg
*
diag_msg
= data;
local
369
const struct netlink_
diag_msg
*const
diag_msg
= data;
local
[
all
...]
/kernel/tests/net/test/
sock_diag_test.py
86
diag_msg
, attrs = info
88
self.assertEqual(
diag_msg
.family, family)
91
self.assertEqual(
diag_msg
.id.src, self.sock_diag.PaddedAddress(src))
92
self.assertEqual(
diag_msg
.id.sport, sport)
94
if self.sock_diag.GetDestinationAddress(
diag_msg
) not in ["0.0.0.0", "::"]:
96
self.assertEqual(
diag_msg
.id.dst, self.sock_diag.PaddedAddress(dst))
97
self.assertEqual(
diag_msg
.id.dport, dport)
143
diag_msg
= self.sock_diag.FindSockDiagFromFd(sock)
144
diag_req = self.sock_diag.DiagReqFromDiagMsg(
diag_msg
, IPPROTO_TCP)
156
for
diag_msg
, unused_attrs in sockets
[
all
...]
sock_diag.py
330
def GetSourceAddress(
diag_msg
):
332
return SockDiag.GetRawAddress(
diag_msg
.family,
diag_msg
.id.src)
335
def GetDestinationAddress(
diag_msg
):
337
return SockDiag.GetRawAddress(
diag_msg
.family,
diag_msg
.id.dst)
384
"""Gets a
diag_msg
and attrs from the kernel for the specified socket."""
394
for
diag_msg
, attrs in results:
395
if
diag_msg
.inode == inode:
396
return
diag_msg
, attr
[
all
...]
Completed in 112 milliseconds