Home
last modified time | relevance | path

Searched refs:promisc (Results 1 – 24 of 24) sorted by relevance

/external/scapy/scapy/arch/
Dpcapdnet.py135 def __init__(self, device, snaplen, promisc, to_ms): argument
138 self.pcap = pcap_open_live(self.iface, snaplen, promisc, to_ms, self.errbuf)
179 def __init__(self, iface = None, type = ETH_P_ALL, promisc=None, filter=None): argument
185 if promisc is None:
186 promisc = conf.sniff_promisc
187 self.promisc = promisc
188 self.ins = open_pcap(iface, 1600, self.promisc, 100)
241 def __init__(self, iface = None, type = ETH_P_ALL, promisc=None, filter=None, nofilter=0): argument
245 if promisc is None:
246 promisc = 0
[all …]
Dlinux.py399 def __init__(self, type = ETH_P_ALL, filter=None, promisc=None, iface=None, nofilter=0): argument
417 self.promisc = conf.promisc if promisc is None else promisc
418 if self.promisc:
431 if self.promisc:
494 def __init__(self, iface=None, type=ETH_P_ALL, promisc=None, filter=None, nofilter=0): argument
506 self.promisc = conf.sniff_promisc if promisc is None else promisc
507 if self.promisc:
526 if self.promisc:
558 def __init__(self, iface = None, type = ETH_P_ALL, promisc=None, filter=None, nofilter=0): argument
573 if promisc is None:
[all …]
/external/tcpdump/tests/
Dsflow_multiple_counter_30_pdus.out10 Out errors 0, promisc mode 2
22 Out errors 0, promisc mode 2
34 Out errors 0, promisc mode 2
46 Out errors 0, promisc mode 2
58 Out errors 0, promisc mode 2
70 Out errors 0, promisc mode 2
82 Out errors 0, promisc mode 2
96 Out errors 0, promisc mode 2
108 Out errors 0, promisc mode 2
120 Out errors 0, promisc mode 2
[all …]
/external/scapy/scapy/
Dsendrecv.py352 def sr(x, promisc=None, filter=None, iface=None, nofilter=0, *args,**kargs): argument
364 s = conf.L3socket(promisc=promisc, filter=filter, iface=iface, nofilter=nofilter)
370 def sr1(x, promisc=None, filter=None, iface=None, nofilter=0, *args,**kargs): argument
382 s=conf.L3socket(promisc=promisc, filter=filter, nofilter=nofilter, iface=iface)
391 def srp(x, promisc=None, iface=None, iface_hint=None, filter=None, nofilter=0, type=ETH_P_ALL, *arg… argument
405 s = conf.L2socket(promisc=promisc, iface=iface, filter=filter, nofilter=nofilter, type=type)
539 def srflood(x, promisc=None, filter=None, iface=None, nofilter=None, *args,**kargs): argument
546 s = conf.L3socket(promisc=promisc, filter=filter, iface=iface, nofilter=nofilter)
552 def sr1flood(x, promisc=None, filter=None, iface=None, nofilter=0, *args,**kargs): argument
559 s=conf.L3socket(promisc=promisc, filter=filter, nofilter=nofilter, iface=iface)
[all …]
Dsupersocket.py40 self.promisc=None
77 def __init__(self, type = ETH_P_IP, filter=None, iface=None, promisc=None, nofilter=0): argument
191 def __init__(self, iface=None, promisc=None, filter=None, nofilter=False, argument
205 if not promisc:
Dconfig.py397 promisc = 1 variable in Conf
/external/scapy/scapy/arch/bpf/
Dsupersocket.py43 def __init__(self, iface=None, type=ETH_P_ALL, promisc=None, filter=None, nofilter=0): argument
46 if promisc is None:
47 self.promisc = conf.sniff_promisc
49 self.promisc = promisc
75 if self.promisc:
/external/libpcap/
Dpcap-dos.c111 static int first_init (const char *name, char *ebuf, int promisc);
209 !first_init(pcap->opt.device, pcap->errbuf, pcap->opt.promisc)) in pcap_activate_dos()
653 open_driver (const char *dev_name, char *ebuf, int promisc) in open_driver() argument
684 if (promisc) in open_driver()
703 if (promisc && dev->set_multicast_list) in open_driver()
799 static int first_init (const char *name, char *ebuf, int promisc) in first_init() argument
820 dev = open_driver (name, ebuf, promisc); in first_init()
Dpcap-libdlpi.c152 if (p->opt.promisc) { in pcap_activate_libdlpi()
190 if (p->opt.promisc) in pcap_activate_libdlpi()
Dpcap-int.h99 int promisc; member
Dpcap.c2204 p->opt.promisc = 0;
2248 pcap_set_promisc(pcap_t *p, int promisc)
2252 p->opt.promisc = promisc;
2453 pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, char *errbuf)
2483 promisc ? PCAP_OPENFLAG_PROMISCUOUS : 0, to_ms,
2511 status = pcap_set_promisc(p, promisc);
Dpcap-dlpi.c675 if (p->opt.promisc) {
707 if (!p->opt.promisc) {
717 if (p->opt.promisc) {
Dpcap-netmap.c258 if (p->opt.promisc && !(d->req.nr_ringid & NETMAP_SW_RING)) { in pcap_netmap_activate()
Dpcap-nit.c248 if (p->opt.promisc) in nit_setflags()
Dpcap-snit.c269 if (p->opt.promisc) in nit_setflags()
Dpcap-pf.c362 if (p->opt.promisc) in pcap_activate_pf()
Dpcap-linux.c1528 if (handle->opt.promisc) {
1529 handle->opt.promisc = 0;
1552 if (handle->opt.promisc)
2195 if (handle->opt.promisc)
3833 if (!is_any_device && handle->opt.promisc) {
6652 if (handle->opt.promisc) {
Dpcap-sita.c967 …acn_start_monitor(handle->fd, handle->snapshot, handle->opt.timeout, handle->opt.promisc, handle->… in pcap_read_acn()
Dpcap-npf.c1026 if (p->opt.promisc) in pcap_activate_npf()
Dpcap-bpf.c2427 if (p->opt.promisc) {
DCHANGES694 - Document promisc argument to pcap_open_live(). Reported by Ian Marsh
/external/scapy/test/
Dbpf.uts77 L2bpfListenSocket(promisc=True)
79 L2bpfListenSocket(iface=conf.iface, promisc=True, filter="icmp")
/external/scapy/scapy/layers/
Dinet6.py3232 def __init__(self, type = ETH_P_IPV6, filter=None, iface=None, promisc=None, nofilter=0): argument
3233 L3RawSocket.__init__(self, type, filter, iface, promisc)
/external/libnl/lib/route/
Dlink.c2520 __ADD(IFF_PROMISC, promisc)