Home
last modified time | relevance | path

Searched refs:flags (Results 1 – 12 of 12) sorted by relevance

/kernel/tests/net/test/
Dnamespace.py79 def Mount(src, tgt, fs, flags=MS_NODEV|MS_NOEXEC|MS_NOSUID|MS_RELATIME): argument
80 ret = libc.mount(src, tgt, fs, flags, None)
84 % (os.strerror(errno), src, tgt, fs, flags))
108 def UnShare(flags): argument
109 ret = libc.unshare(flags)
112 raise OSError(errno, '%s while unshare(0x%x)' % (os.strerror(errno), flags))
Dpackets.py88 flags=TCP_SYN, window=TCP_WINDOW))
93 was_syn_or_fin = (original.flags & (TCP_SYN | TCP_FIN)) != 0
99 flags=TCP_RST | TCP_ACK, window=TCP_WINDOW))
108 flags=TCP_SYN | TCP_ACK, window=None))
113 was_syn_or_fin = (original.flags & (TCP_SYN | TCP_FIN)) != 0
116 flags = TCP_ACK | TCP_PSH if payload else TCP_ACK
121 flags=flags, window=TCP_WINDOW) /
127 was_syn_or_fin = (original.flags & (TCP_SYN | TCP_FIN)) != 0
133 flags=TCP_ACK | TCP_FIN, window=TCP_WINDOW))
Dxfrm.py288 flags=XFRM_POLICY_LOCALOK,
347 def MaybeDebugCommand(self, command, flags, data): argument
352 if flags & netlink.NLM_F_DUMP:
451 flags=netlink.NLM_F_ACK|netlink.NLM_F_REQUEST): argument
491 return self._SendNlRequest(msg_type, msg, flags)
562 flags = XFRM_STATE_AF_UNSPEC if mode == XFRM_MODE_TUNNEL else 0
566 cur, stats, seq, reqid, family, mode, replay, flags))
568 flags = netlink.NLM_F_REQUEST | netlink.NLM_F_ACK
570 self._SendNlRequest(nl_msg_type, msg, flags)
613 flags = netlink.NLM_F_REQUEST
[all …]
Dcsocket.py218 def Sendmsg(s, to, data, control, flags): argument
270 msg_control, msg_controllen, flags)).Pack()
295 def Recvmsg(s, buflen, controllen, flags, addrlen=len(SockaddrStorage)): argument
324 msg_control, msg_controllen, flags))
325 ret = libc.recvmsg(s.fileno(), VoidPointer(msghdr), flags)
337 def Recvfrom(s, size, flags=0): argument
343 ret = libc.recvfrom(s.fileno(), buf, len(buf), flags,
Dnet_test.py124 flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0)
125 fcntl.fcntl(fd, fcntl.F_SETFL, flags | os.O_NONBLOCK)
231 _, flags = struct.unpack("%dsH" % IFNAMSIZ, ifr)
233 flags |= scapy.IFF_UP
235 flags &= ~scapy.IFF_UP
236 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname, flags)
333 flags = IPV6_FL_F_CREATE
335 return struct.pack(fmt, addr, label, action, share, flags, 0, 0, pad)
Dgenetlink.py60 def _SendCommand(self, family, command, version, data, flags): argument
62 self._SendNlRequest(family, genlmsghdr.Pack() + data, flags)
Drun_net_test.sh8 flags = fcntl.fcntl(fd, fcntl.F_GETFL)
9 flags &= ~(fcntl.FASYNC | os.O_NONBLOCK | os.O_APPEND)
10 fcntl.fcntl(fd, fcntl.F_SETFL, flags)
Dbpf.py216 def UpdateMap(map_fd, key, value, flags=0): argument
221 attr = BpfAttrOps((map_fd, key_ptr, value_ptr, flags))
Dpf_key.py284 sa.spi, sa.replay, state, auth, encrypt, sa.flags))
Dsock_diag_test.py829 flags = [name for (flag, name) in self.POLL_FLAGS
831 out.append((fd, "|".join(flags)))
Dmultinetwork_base.py623 actualip.flags &= 5
/kernel/configs/build/
Dkernel_config.go36 Command: `${assembleVintfCmd} ${flags} -i ${in} -o ${out}`,