Searched defs:InetDiagSockId (Results 1 - 1 of 1) sorted by relevance

/system/extras/tests/net_test/
H A Dsock_diag.py69 InetDiagSockId = cstruct.Struct( variable
70 "InetDiagSockId", "!HH16s16sI8s", "sport dport src dst iface cookie")
73 [InetDiagSockId])
77 [InetDiagSockId])
139 return InetDiagSockId(("\x00" * len(InetDiagSockId)))
270 """Converts an IP address string to binary format for InetDiagSockId."""
298 sock_id = InetDiagSockId((sport, dport, src, dst, iface, "\x00" * 8))

Completed in 415 milliseconds