Home
last modified time | relevance | path

Searched refs:tos (Results 1 – 3 of 3) sorted by relevance

/system/extras/tests/net_test/
Dnet_test.py89 def SetSocketTos(s, tos): argument
92 s.setsockopt(level, option, tos)
Dmultinetwork_test.py81 def _SetPacketTos(packet, tos): argument
83 packet.tc = tos
85 packet.tos = tos
102 packet = (scapy.IP(src=srcaddr, dst=dstaddr, ttl=39, tos=0x83) /
184 scapy.IP(src=srcaddr, dst=dstaddr, proto=1, tos=0xc0) /
635 tos = s.getsockopt(SOL_IP, IP_TOS)
637 s.setsockopt(net_test.SOL_IP, IP_TOS, tos)
/system/core/libnetutils/
Dpacket.c103 ip.tos = 0; in send_packet()