Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 4 of 4) sorted by relevance

/libbtbb/lib/src/
H A Dpcapng.c37 PCAPNG_RESULT pcapng_create( PCAPNG_HANDLE * handle, in pcapng_create() argument
51 handle->section_header = NULL; in pcapng_create()
52 handle->interface_description = NULL; in pcapng_create()
53 handle->section_header_size = handle->next_section_option_offset = in pcapng_create()
54 handle->interface_description_size = in pcapng_create()
55 handle->next_interface_option_offset = 0; in pcapng_create()
57 handle->fd = open( filename, O_RDWR|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP ); in pcapng_create()
58 if (handle->fd == -1) { in pcapng_create()
86 handle->section_header_size = sizeof( shb ); in pcapng_create()
87 result = write( handle->fd, &shb, sizeof( shb ) ); in pcapng_create()
[all …]
H A Dpcapng-bt.c59 check_and_fix_tsresol( PCAPNG_HANDLE * handle, in check_and_fix_tsresol() argument
91 retval = pcapng_append_interface_option( handle, in check_and_fix_tsresol()
101 create_bredr_capture_file_single_interface( PCAPNG_HANDLE * handle, in create_bredr_capture_file_single_interface() argument
107 retval = pcapng_create( handle, in create_bredr_capture_file_single_interface()
119 retval = check_and_fix_tsresol( handle, interface_options ); in create_bredr_capture_file_single_interface()
122 (void) pcapng_close( handle ); in create_bredr_capture_file_single_interface()
134 PCAPNG_HANDLE * handle = malloc( sizeof(PCAPNG_HANDLE) ); in btbb_pcapng_create_file() local
135 if (handle) { in btbb_pcapng_create_file()
152 retval = -create_bredr_capture_file_single_interface( handle, in btbb_pcapng_create_file()
156 *ph = (btbb_pcapng_handle *) handle; in btbb_pcapng_create_file()
[all …]
H A Dpcap.c78 btbb_pcap_handle * handle = malloc( sizeof(btbb_pcap_handle) ); in btbb_pcap_create_file() local
79 if (handle) { in btbb_pcap_create_file()
80 memset(handle, 0, sizeof(*handle)); in btbb_pcap_create_file()
81 handle->pcap_file = btbb_pcap_open(filename, DLT_BLUETOOTH_BREDR_BB, in btbb_pcap_create_file()
83 if (handle->pcap_file) { in btbb_pcap_create_file()
84 *ph = handle; in btbb_pcap_create_file()
98 (void) btbb_pcap_close( handle ); in btbb_pcap_create_file()
237 lell_pcap_handle * handle = malloc( sizeof(lell_pcap_handle) ); in lell_pcap_create_file_dlt() local
238 if (handle) { in lell_pcap_create_file_dlt()
239 memset(handle, 0, sizeof(*handle)); in lell_pcap_create_file_dlt()
[all …]
H A Dpcapng.h178 PCAPNG_RESULT pcapng_create( PCAPNG_HANDLE * handle,
187 PCAPNG_RESULT pcapng_append_section_option( PCAPNG_HANDLE * handle,
190 PCAPNG_RESULT pcapng_append_interface_option( PCAPNG_HANDLE * handle,
193 PCAPNG_RESULT pcapng_append_packet( PCAPNG_HANDLE * handle,
196 PCAPNG_RESULT pcapng_close( PCAPNG_HANDLE * handle );