Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dnamespace.py83 def Mount(src, tgt, fs, flags=MS_NODEV|MS_NOEXEC|MS_NOSUID|MS_RELATIME): argument
85 flags, None)
89 % (os.strerror(err), src, tgt, fs, flags))
119 def UnShare(flags): argument
120 ret = libc.unshare(flags)
123 raise OSError(err, '%s while unshare(0x%x)' % (os.strerror(err), 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))
Dnetlink.py191 def MaybeDebugCommand(self, command, flags, data): argument
225 def _SendNlRequest(self, command, data, flags): argument
228 nlmsg = NLMsgHdr((length, command, flags, self.seq, self.pid)).Pack()
230 self.MaybeDebugCommand(command, flags, nlmsg + data)
235 if flags & NLM_F_ACK:
287 flags = NLM_F_DUMP | NLM_F_REQUEST
290 nlmsghdr = NLMsgHdr((length, command, flags, self.seq, self.pid))
294 self.MaybeDebugCommand(command, flags, request)
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 …]
Diproute.py411 def _SendNlRequest(self, command, data, flags=0): argument
414 flags |= netlink.NLM_F_REQUEST
416 flags |= netlink.NLM_F_ACK
418 if flags & (netlink.NLM_F_REPLACE | netlink.NLM_F_CREATE) == 0:
419 flags |= netlink.NLM_F_CREATE | netlink.NLM_F_EXCL
421 super(IPRoute, self)._SendNlRequest(command, data, flags)
538 def _Address(self, version, command, addr, prefixlen, flags, scope, ifindex): argument
541 ifaddrmsg = IfAddrMsg((family, prefixlen, flags, scope, ifindex)).Pack()
589 flags = IFA_F_PERMANENT
591 flags |= IFA_F_NODAD
[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.py184 flags = fcntl.fcntl(fd, fcntl.F_GETFL, 0)
185 fcntl.fcntl(fd, fcntl.F_SETFL, flags | os.O_NONBLOCK)
293 _, flags = struct.unpack("%dsH" % IFNAMSIZ, ifr)
295 flags |= scapy.IFF_UP
297 flags &= ~scapy.IFF_UP
298 ifr = struct.pack("%dsH" % IFNAMSIZ, ifname_bytes, flags)
398 flags = IPV6_FL_F_CREATE
400 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)
Dsrcaddr_selection_test.py99 self.assertEqual(expected_flags, ifa_msg.flags & expected_flags)
103 return ifa_msg.flags & iproute.IFA_F_TENTATIVE
151 if ifa_msg.flags & iproute.IFA_F_DADFAILED:
Dbpf.py234 def UpdateMap(map_fd, key, value, flags=0): argument
239 attr = BpfAttrOps((map_fd, key_ptr, value_ptr, flags))
Dsock_diag_test.py811 flags = [name for (flag, name) in self.POLL_FLAGS
813 out.append((fd, "|".join(flags)))
Dmultinetwork_base.py644 actualip.flags &= 5
Dxfrm_tunnel_test.py766 'flags': scapy.IP(bytes(pkt.payload)[8:]).flags
/kernel/configs/build/
Dkernel_config.go36 Command: `${assembleVintfCmd} ${flags} -i ${in} -o ${out}`,