/external/ltp/testcases/kernel/security/filecaps/ |
verify_caps_exec.c | 213 cap_t fcap, pcap, cap_fullpi; local 218 pcap = cap_init(); 219 if (!fcap || !pcap) { 284 cap_free(pcap); 319 pcap = cap_dup(cap_fullpi); 321 cap_set_flag(pcap, CAP_PERMITTED, 1, capvalue, CAP_SET); 331 ret = fork_drop_and_exec(KEEP_PERMS, pcap); 345 * fcap and pcap and set those bits. 349 cap_set_flag(pcap, CAP_EFFECTIVE, 1, capvalue, CAP_SET); 374 cap_clear(pcap); [all...] |
/external/ppp/pppd/include/ |
pcap-int.h | 33 * @(#) $Header: /data/cvs/ppp/include/pcap-int.h,v 1.1 2000/08/01 01:37:24 paulus Exp $ (LBL) 39 #include <pcap.h> 68 struct pcap { struct 106 /* XXX should these be in pcap.h? */
|
/device/google/cuttlefish_common/common/commands/wifi_relay/ |
mac80211_hwsim.cpp | 29 pcap, "", "Path to save a pcap file of packets"); 73 static int pcap = -1; local 74 if (pcap == -1) { 75 pcap = open(FLAGS_pcap.c_str(), O_RDWR|O_CREAT|O_TRUNC, 0644); 76 if (pcap == -1) { 79 (void)write(pcap, &pcap_file_header, sizeof(pcap_file_header)); 94 (void)writev(pcap, iov, 2);
|
/external/syslinux/gpxe/src/util/ |
hijack.c | 18 #include <pcap.h> 30 pcap_t *pcap; member in struct:hijack 62 int pcap_inject ( pcap_t *pcap, const void *data, size_t len ) { 64 char *errbuf = pcap_geterr ( pcap ); 66 fd = pcap_get_selectable_fd ( pcap ); 99 * Open pcap device 105 /* Open interface via pcap */ 107 hijack->pcap = pcap_open_live ( interface, SNAPLEN, 1, 0, errbuf ); 108 if ( ! hijack->pcap ) { 117 if ( pcap_setnonblock ( hijack->pcap, 1, errbuf ) < 0 ) [all...] |
/external/wpa_supplicant_8/src/l2_packet/ |
l2_packet_freebsd.c | 14 #include <pcap.h> 37 pcap_t *pcap; member in struct:l2_packet_data 67 ret = pcap_inject(l2->pcap, (u8 *) eth, len + sizeof(*eth)); 71 return pcap_inject(l2->pcap, buf, len); 78 pcap_t *pcap = sock_ctx; local 85 packet = pcap_next(pcap, &hdr); 110 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 10, pcap_err); 111 if (l2->pcap == NULL) { 116 if (pcap_datalink(l2->pcap) != DLT_EN10MB && 117 pcap_set_datalink(l2->pcap, DLT_EN10MB) < 0) [all...] |
l2_packet_pcap.c | 13 #include <pcap.h> 27 pcap_t *pcap; member in struct:l2_packet_data 89 ret = pcap_sendpacket(l2->pcap, buf, len); 105 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); 121 pcap_t *pcap = sock_ctx; local 128 packet = pcap_next(pcap, &hdr); 178 pcap_t *pcap = timeout_ctx; local 191 l2, pcap); 192 pcap_dispatch(pcap, 10, l2_packet_receive_cb, (u_char *) l2); 208 l2->pcap = pcap_open_live(ifname, 2500, 0, 10, pcap_err) [all...] |
l2_packet_winpcap.c | 30 #include <pcap.h> 48 pcap_t *pcap; member in struct:l2_packet_data 82 ret = pcap_sendpacket(l2->pcap, buf, len); 93 ret = pcap_sendpacket(l2->pcap, (u8 *) eth, mlen); 133 pcap_dispatch(l2->pcap, 1, l2_packet_receive_cb, 169 l2->pcap = pcap_open_live(l2->ifname, 2500, 0, 1, pcap_err); 170 if (l2->pcap == NULL) { 182 if (pcap_compile(l2->pcap, &pcap_fp, pcap_filter, 1, pcap_netp) < 0) { 183 fprintf(stderr, "pcap_compile: %s\n", pcap_geterr(l2->pcap)); 187 if (pcap_setfilter(l2->pcap, &pcap_fp) < 0) [all...] |
/external/libpcap/ |
pcap-dos.c | 5 * pcap-dos.c: Interface to PKTDRVR, NDIS2 and 32-bit pmode 37 #include "pcap.h" 38 #include "pcap-dos.h" 39 #include "pcap-int.h" 110 static int init_watt32 (struct pcap *pcap, const char *dev_name, char *err_buf); 113 static void watt32_recv_hook (u_char *dummy, const struct pcap_pkthdr *pcap, 168 static int pcap_activate_dos (pcap_t *pcap) 170 if (pcap->opt.rfmon) { 177 if (pcap->snapshot < ETH_MIN+8 223 struct pcap_pkthdr pcap; local [all...] |
pcap-int.h | 37 #include <pcap/pcap.h> 46 * probably already defined as a result of including <pcap/pcap.h>. 151 struct pcap { struct 184 struct pcap *next; /* list of open pcaps that need stuff cleared on close */ 378 * Routines that most pcap implementations can use for non-blocking mode.
|
/external/scapy/scapy/modules/ |
winpcapy.py | 35 _lib_name = find_library("pcap") 48 pcap = c_void_p variable 222 #typedef struct pcap pcap_t 224 pcap_t = pcap 402 # Set the current data link type of the pcap descriptor to the type specified by dlt. -1 is returned on failure. 438 # return the major version number of the pcap library used to write the savefile. 444 # return the minor version number of the pcap library used to write the savefile. 462 # print the text of the last pcap library error on stderr, prefixed by prefix. 468 # return the error text pertaining to the last pcap library error.
|