Searched refs:tos (Results 1 – 3 of 3) sorted by relevance
/system/extras/tests/net_test/ |
D | net_test.py | 89 def SetSocketTos(s, tos): argument 92 s.setsockopt(level, option, tos)
|
D | multinetwork_test.py | 81 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/ |
D | packet.c | 103 ip.tos = 0; in send_packet()
|