karpierz / libpcap

Python binding for the libpcap C library.
BSD 3-Clause "New" or "Revised" License
54 stars 14 forks source link

Support Macos #3

Closed pocc closed 2 years ago

pocc commented 4 years ago

I run this on Macos 10.14 with iPython and get this error:

In [3]: import libpcap
---------------------------------------------------------------------------
NotImplementedError                       Traceback (most recent call last)
<ipython-input-3-0c40fb8a6e56> in <module>
----> 1 import libpcap

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/libpcap/__init__.py in <module>
      5 from . import __config__ ; del __config__
      6 from .__about__ import * ; del __about__
----> 7 from ._pcap import *

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/libpcap/_pcap.py in <module>
     70             else ct.c_int64)
     71
---> 72 from ._platform import is_windows, is_linux, defined
     73 from ._platform import CFUNC
     74 from ._platform import SOCKET, INVALID_SOCKET, timeval, sockaddr

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/libpcap/_platform/__init__.py in <module>
     33     from ._linux   import sockaddr, in_addr, sockaddr_in, in6_addr, sockaddr_in6
     34 elif is_osx:
---> 35     from ._osx     import DLL_PATH, DLL, dlclose, CFUNC
     36     from ._osx     import timeval, SOCKET, INVALID_SOCKET
     37     from ._osx     import sockaddr, in_addr, sockaddr_in, in6_addr, sockaddr_in6

/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/libpcap/_platform/_osx/__init__.py in <module>
     14 arch_dir = os.path.join(this_dir, arch)
     15
---> 16 raise NotImplementedError("This OS is not supported yet!")
     17
     18 try:

NotImplementedError: This OS is not supported yet!

I can provide additional info as necessary.

karpierz commented 4 years ago

Could you (or others) please send me an appropriate MacOS's libpcap shared library (for 64 and/or 32bit)? I suppose that it called 'libpcap.dylib' or similar. PS: Sorry, but I'm no familiar with Mac at all...

lydia-hogan commented 2 years ago

Hi @karpierz! Here is the libpcap library for Mac that you asked for some time ago: libpcap.zip

emrainey commented 2 years ago

Homebrew has libpcap AND Mac OSX has it's own (but I can't find it on my install). You just need to load it as libpcap.dylib. Here's the installed folder from homebrew:

$ ls -als /usr/local/Cellar/libpcap/1.10.1/lib/
total 1056
  0 drwxr-xr-x   7 erikrain  admin     224 Jun  7  2021 .
  0 drwxr-xr-x  12 erikrain  admin     384 Jun  8 08:50 ..
488 -rw-r--r--   1 erikrain  admin  248880 Jun  8 08:50 libpcap.1.10.1.dylib
  0 lrwxr-xr-x   1 erikrain  admin      20 Jun  7  2021 libpcap.A.dylib -> libpcap.1.10.1.dylib
568 -r--r--r--   1 erikrain  admin  287016 Jun  7  2021 libpcap.a
  0 lrwxr-xr-x   1 erikrain  admin      15 Jun  7  2021 libpcap.dylib -> libpcap.A.dylib
  0 drwxr-xr-x   3 erikrain  admin      96 Jun  8 08:50 pkgconfig

Which gets linked to /usr/local/opt/libpcap/lib/ to remove the version from the path.

The native libpcap is perhaps installed by some special tool from Apple but I didn't have it installed on my laptop

And here's the objdump -C -sym libpcap.dylib on Mac:

objdump -C -syms /usr/local/Cellar/libpcap/1.10.1/lib/libpcap.dylib

/usr/local/Cellar/libpcap/1.10.1/lib/libpcap.dylib: file format Mach-O 64-bit x86-64

SYMBOL TABLE:
0000000000002948 l     F __TEXT,__text _pcap_create_interface
0000000000002981 l     F __TEXT,__text _pcap_activate_bpf
000000000000325e l     F __TEXT,__text _pcap_can_set_rfmon_bpf
0000000000003485 l     F __TEXT,__text _pcap_platform_finddevs
00000000000034aa l     F __TEXT,__text _check_bpf_bindable
000000000000359d l     F __TEXT,__text _get_if_flags
0000000000003728 l     F __TEXT,__text _device_exists
00000000000037fc l     F __TEXT,__text _bpf_open
0000000000003a0b l     F __TEXT,__text _bpf_bind
0000000000003b14 l     F __TEXT,__text _get_dlt_list
0000000000003c3b l     F __TEXT,__text _find_802_11
0000000000003ca3 l     F __TEXT,__text _check_setif_failure
0000000000003db3 l     F __TEXT,__text _pcap_read_bpf
0000000000003faf l     F __TEXT,__text _pcap_inject_bpf
000000000000405a l     F __TEXT,__text _pcap_setfilter_bpf
0000000000004103 l     F __TEXT,__text _pcap_setdirection_bpf
00000000000041d4 l     F __TEXT,__text _pcap_set_datalink_bpf
0000000000004236 l     F __TEXT,__text _pcap_getnonblock_bpf
0000000000004240 l     F __TEXT,__text _pcap_setnonblock_bpf
000000000000424a l     F __TEXT,__text _pcap_stats_bpf
00000000000042c0 l     F __TEXT,__text _pcap_cleanup_bpf
0000000000004303 l     F __TEXT,__text _bpf_open_and_bind
0000000000004356 l     F __TEXT,__text _pcap_findalldevs_interfaces
000000000000461b l     F __TEXT,__text _pcap_oneshot
00000000000047c6 l     F __TEXT,__text _find_or_add_if
00000000000047f2 l     F __TEXT,__text _find_or_add_dev
0000000000004873 l     F __TEXT,__text _add_addr_to_if
00000000000048f2 l     F __TEXT,__text _add_addr_to_dev
0000000000004ae6 l     F __TEXT,__text _dup_sockaddr
0000000000004b26 l     F __TEXT,__text _find_dev
0000000000004b5a l     F __TEXT,__text _add_dev
0000000000004cab l     F __TEXT,__text _get_figure_of_merit
0000000000005080 l     F __TEXT,__text _pcap_create_common
000000000000515f l     F __TEXT,__text _pcap_alloc_pcap_t
00000000000051cb l     F __TEXT,__text _pcap_cant_set_rfmon
00000000000051d3 l     F __TEXT,__text _pcap_setnonblock_unactivated
00000000000051e1 l     F __TEXT,__text _pcap_check_activated
0000000000005800 l     F __TEXT,__text _pcap_open_offline_common
0000000000005a75 l     F __TEXT,__text _pcap_strcasecmp
0000000000005d40 l     F __TEXT,__text _pcap_getnonblock_fd
0000000000005dda l     F __TEXT,__text _pcap_setnonblock_fd
0000000000005efa l     F __TEXT,__text _pcap_do_addexit
0000000000005f54 l     F __TEXT,__text _pcap_close_all
0000000000005f89 l     F __TEXT,__text _pcap_add_to_pcaps_to_close
0000000000005fa1 l     F __TEXT,__text _pcap_remove_from_pcaps_to_close
0000000000005fe6 l     F __TEXT,__text _pcap_breakloop_common
0000000000005ff3 l     F __TEXT,__text _pcap_cleanup_live_common
00000000000062b5 l     F __TEXT,__text _pcap_can_set_rfmon_dead
00000000000062f4 l     F __TEXT,__text _pcap_read_dead
000000000000633a l     F __TEXT,__text _pcap_inject_dead
0000000000006376 l     F __TEXT,__text _pcap_setfilter_dead
00000000000063b4 l     F __TEXT,__text _pcap_setdirection_dead
00000000000063f7 l     F __TEXT,__text _pcap_set_datalink_dead
0000000000006444 l     F __TEXT,__text _pcap_getnonblock_dead
0000000000006490 l     F __TEXT,__text _pcap_setnonblock_dead
00000000000064dc l     F __TEXT,__text _pcap_stats_dead
000000000000651f l     F __TEXT,__text _pcap_cleanup_dead
0000000000006531 l     F __TEXT,__text _pcap_read_not_initialized
000000000000659c l     F __TEXT,__text _pcap_inject_not_initialized
0000000000006607 l     F __TEXT,__text _pcap_setfilter_not_initialized
0000000000006672 l     F __TEXT,__text _pcap_setdirection_not_initialized
00000000000066dd l     F __TEXT,__text _pcap_set_datalink_not_initialized
0000000000006748 l     F __TEXT,__text _pcap_getnonblock_not_initialized
00000000000067b3 l     F __TEXT,__text _pcap_stats_not_initialized
0000000000006820 l     F __TEXT,__text _bpf_set_error
00000000000068f8 l     F __TEXT,__text _sdup
0000000000006945 l     F __TEXT,__text _newchunk_nolongjmp
0000000000007515 l     F __TEXT,__text _finish_parse
0000000000008269 l     F __TEXT,__text _gen_and
000000000000833f l     F __TEXT,__text _gen_or
00000000000083f5 l     F __TEXT,__text _gen_not
0000000000008407 l     F __TEXT,__text _gen_llc
000000000000842c l     F __TEXT,__text _gen_llc_internal
00000000000085d8 l     F __TEXT,__text _gen_llc_i
0000000000008669 l     F __TEXT,__text _gen_load_a
00000000000087b8 l     F __TEXT,__text _gen_llc_s
0000000000008815 l     F __TEXT,__text _gen_llc_u
0000000000008872 l     F __TEXT,__text _gen_llc_s_subtype
00000000000088e0 l     F __TEXT,__text _gen_llc_u_subtype
000000000000894e l     F __TEXT,__text _gen_proto_abbrev
0000000000008978 l     F __TEXT,__text _gen_proto_abbrev_internal
0000000000008eb4 l     F __TEXT,__text _gen_portop6
0000000000009100 l     F __TEXT,__text _gen_scode
0000000000009890 l     F __TEXT,__text _bpf_error
0000000000009928 l     F __TEXT,__text _gen_host
0000000000009cc0 l     F __TEXT,__text _gen_prevlinkhdr_check
0000000000009daa l     F __TEXT,__text _gen_ehostop
0000000000009f08 l     F __TEXT,__text _gen_fhostop
000000000000a07c l     F __TEXT,__text _gen_thostop
000000000000a1e4 l     F __TEXT,__text _gen_wlanhostop
000000000000aaa4 l     F __TEXT,__text _gen_ipfchostop
000000000000ac0c l     F __TEXT,__text _gen_host6
000000000000ae94 l     F __TEXT,__text _gen_port
000000000000af68 l     F __TEXT,__text _gen_port6
000000000000b03c l     F __TEXT,__text _gen_portrange
000000000000b127 l     F __TEXT,__text _gen_portrange6
000000000000b212 l     F __TEXT,__text _lookup_proto
000000000000b2e3 l     F __TEXT,__text _gen_proto
000000000000b7f4 l     F __TEXT,__text _gen_protochain
000000000000bff1 l     F __TEXT,__text _syntax
000000000000c003 l     F __TEXT,__text _gen_mcode
000000000000c15a l     F __TEXT,__text _gen_ncode
000000000000c444 l     F __TEXT,__text _gen_mcode6
000000000000c618 l     F __TEXT,__text _gen_ecode
000000000000c783 l     F __TEXT,__text _sappend
000000000000c799 l     F __TEXT,__text _gen_load
000000000000c7da l     F __TEXT,__text _gen_load_internal
000000000000ce80 l     F __TEXT,__text _gen_relation
000000000000cecd l     F __TEXT,__text _gen_relation_internal
000000000000d05c l     F __TEXT,__text _gen_loadlen
000000000000d0e3 l     F __TEXT,__text _alloc_reg
000000000000d13e l     F __TEXT,__text _newchunk
000000000000d165 l     F __TEXT,__text _gen_loadi
000000000000d18f l     F __TEXT,__text _gen_loadi_internal
000000000000d20a l     F __TEXT,__text _gen_neg
000000000000d2c2 l     F __TEXT,__text _gen_arth
000000000000d47f l     F __TEXT,__text _gen_greater
000000000000d4e0 l     F __TEXT,__text _gen_less
000000000000d54f l     F __TEXT,__text _gen_byteop
000000000000d6b4 l     F __TEXT,__text _gen_broadcast
000000000000d8f4 l     F __TEXT,__text _gen_linktype
000000000000eed0 l     F __TEXT,__text _gen_multicast
000000000000f410 l     F __TEXT,__text _gen_ifindex
000000000000f49d l     F __TEXT,__text _gen_inbound
000000000000f70d l     F __TEXT,__text _gen_pf_ifname
000000000000f739 l     F __TEXT,__text _gen_pf_ruleset
000000000000f765 l     F __TEXT,__text _gen_pf_rnr
000000000000f791 l     F __TEXT,__text _gen_pf_srnr
000000000000f7bd l     F __TEXT,__text _gen_pf_reason
000000000000f7e9 l     F __TEXT,__text _gen_pf_action
000000000000f815 l     F __TEXT,__text _gen_p80211_type
000000000000f893 l     F __TEXT,__text _gen_p80211_fcdir
000000000000f908 l     F __TEXT,__text _gen_acode
000000000000fadc l     F __TEXT,__text _gen_vlan
000000000000fb81 l     F __TEXT,__text _gen_vlan_no_bpf_extensions
000000000000fc60 l     F __TEXT,__text _gen_mpls
000000000000fdad l     F __TEXT,__text _gen_pppoed
000000000000fdd7 l     F __TEXT,__text _gen_pppoes
000000000000ff0b l     F __TEXT,__text _gen_geneve
00000000000105a6 l     F __TEXT,__text _gen_atmfield_code
00000000000105f3 l     F __TEXT,__text _gen_atmfield_code_internal
00000000000106ec l     F __TEXT,__text _gen_atmtype_abbrev
00000000000109f4 l     F __TEXT,__text _gen_atmtype_metac
0000000000010a45 l     F __TEXT,__text _gen_atmtype_sc
0000000000010a96 l     F __TEXT,__text _gen_mtp2type_abbrev
0000000000010d54 l     F __TEXT,__text _gen_ncmp
0000000000010df5 l     F __TEXT,__text _gen_mtp3field_code
000000000001101c l     F __TEXT,__text _gen_atmmulti_abbrev
0000000000011323 l     F __TEXT,__text _gen_check_802_11_data_frame
00000000000113da l     F __TEXT,__text _gen_load_absoffsetrel
0000000000011463 l     F __TEXT,__text _gen_loadx_iphdrlen
0000000000011582 l     F __TEXT,__text _gen_abs_offset_varpart
00000000000115c7 l     F __TEXT,__text _gen_hostop
0000000000011764 l     F __TEXT,__text _gen_dnhostop
0000000000011b14 l     F __TEXT,__text _gen_bcmp
0000000000011cd2 l     F __TEXT,__text _gen_hostop6
0000000000011f08 l     F __TEXT,__text _gen_portop
00000000000121ac l     F __TEXT,__text _gen_ipfrag
000000000001220a l     F __TEXT,__text _gen_portrangeop
00000000000123c4 l     F __TEXT,__text _gen_portrangeatom
000000000001248d l     F __TEXT,__text _gen_portrangeop6
00000000000125dc l     F __TEXT,__text _gen_portrangeatom6
00000000000126be l     F __TEXT,__text _gen_llc_linktype
0000000000012844 l     F __TEXT,__text _ethertype_to_ppptype
00000000000128ce l     F __TEXT,__text _gen_loopback_linktype
000000000001295c l     F __TEXT,__text _gen_geneve_check
0000000000012a40 l     F __TEXT,__text _bpf_optimize
00000000000130b4 l     F __TEXT,__text _opt_cleanup
000000000001310b l     F __TEXT,__text _opt_loop
00000000000147a0 l     F __TEXT,__text _icode_to_fcode
00000000000148bd l     F __TEXT,__text _count_stmts
0000000000014936 l     F __TEXT,__text _convert_code_r
0000000000014cc3 l     F __TEXT,__text _install_bpf_program
0000000000014d77 l     F __TEXT,__text _find_levels_r
0000000000014e05 l     F __TEXT,__text _atomuse
0000000000014eb0 l     F __TEXT,__text _atomdef
0000000000014f20 l     F __TEXT,__text _propedom
0000000000014f7c l     F __TEXT,__text _find_inedges
0000000000015015 l     F __TEXT,__text _opt_j
00000000000151d5 l     F __TEXT,__text _F
0000000000015288 l     F __TEXT,__text _opt_error
000000000001532f l     F __TEXT,__text _fold_op
0000000000015410 l     F __TEXT,__text _deadstmt
0000000000015488 l     F __TEXT,__text _make_marks
00000000000154cc l     F __TEXT,__text _count_blocks
000000000001551e l     F __TEXT,__text _number_blks_r
000000000001559a l     F __TEXT,__text _conv_error
00000000000159cf l     F __TEXT,__text ___pcap_atoin
0000000000015a25 l     F __TEXT,__text ___pcap_atodn
0000000000015b4f l     F __TEXT,__text ___pcap_nametodnaddr
0000000000015db3 l     F __TEXT,__text _pcap_fmt_set_encoding
0000000000015db9 l     F __TEXT,__text _pcap_fmt_errmsg_for_errno
0000000000015ed4 l     F __TEXT,__text _sf_cleanup
00000000000161f0 l     F __TEXT,__text _pcap_adjust_snapshot
0000000000016202 l     F __TEXT,__text _pcap_offline_read
00000000000162bc l     F __TEXT,__text _sf_inject
00000000000162e4 l     F __TEXT,__text _sf_setdirection
0000000000016319 l     F __TEXT,__text _sf_getnonblock
0000000000016321 l     F __TEXT,__text _sf_setnonblock
0000000000016356 l     F __TEXT,__text _sf_stats
000000000001639a l     F __TEXT,__text _pcap_check_header
0000000000016708 l     F __TEXT,__text _pcap_next_packet
0000000000016cd6 l     F __TEXT,__text _pcap_setup_dump
0000000000017218 l     F __TEXT,__text _pcap_ng_check_header
0000000000017693 l     F __TEXT,__text _read_bytes
0000000000017734 l     F __TEXT,__text _read_block
00000000000178ee l     F __TEXT,__text _get_from_block_data
0000000000017934 l     F __TEXT,__text _add_interface
0000000000017cf1 l     F __TEXT,__text _pcap_ng_next_packet
0000000000018274 l     F __TEXT,__text _pcap_ng_cleanup
0000000000018298 l     F __TEXT,__text _dlt_to_linktype
00000000000182e8 l     F __TEXT,__text _linktype_to_dlt
000000000001833b l     F __TEXT,__text _max_snaplen_for_dlt
0000000000018373 l     F __TEXT,__text _swap_pseudo_headers
0000000000018477 l     F __TEXT,__text _swap_linux_usb_header
0000000000018e44 l     F __TEXT,__text _pcap_filter_with_aux_data
0000000000019414 l     F __TEXT,__text _pcap_filter
000000000001941e l     F __TEXT,__text _pcap_validate_filter
000000000001960c l     F __TEXT,__text _pcap_lex
000000000001aab4 l     F __TEXT,__text _pcap_ensure_buffer_stack
000000000001ab45 l     F __TEXT,__text _pcap__create_buffer
000000000001abb1 l     F __TEXT,__text _yy_get_previous_state
000000000001ac82 l     F __TEXT,__text _yy_fatal_error
000000000001acab l     F __TEXT,__text _pcap_restart
000000000001ad45 l     F __TEXT,__text _pcap__init_buffer
000000000001adb0 l     F __TEXT,__text _pcap__switch_to_buffer
000000000001ae48 l     F __TEXT,__text _pcap_alloc
000000000001ae52 l     F __TEXT,__text _pcap__delete_buffer
000000000001aea4 l     F __TEXT,__text _pcap_free
000000000001aeae l     F __TEXT,__text _pcap__flush_buffer
000000000001af2b l     F __TEXT,__text _pcap_push_buffer_state
000000000001afcc l     F __TEXT,__text _pcap_pop_buffer_state
000000000001b05a l     F __TEXT,__text _pcap__scan_buffer
000000000001b0ef l     F __TEXT,__text _pcap__scan_string
000000000001b113 l     F __TEXT,__text _pcap__scan_bytes
000000000001b199 l     F __TEXT,__text _pcap_get_extra
000000000001b1a2 l     F __TEXT,__text _pcap_get_lineno
000000000001b1c3 l     F __TEXT,__text _pcap_get_column
000000000001b1e4 l     F __TEXT,__text _pcap_get_in
000000000001b1ee l     F __TEXT,__text _pcap_get_out
000000000001b1f8 l     F __TEXT,__text _pcap_get_leng
000000000001b202 l     F __TEXT,__text _pcap_get_text
000000000001b20f l     F __TEXT,__text _pcap_set_extra
000000000001b218 l     F __TEXT,__text _pcap_set_lineno
000000000001b243 l     F __TEXT,__text _pcap_set_column
000000000001b26e l     F __TEXT,__text _pcap_set_in
000000000001b278 l     F __TEXT,__text _pcap_set_out
000000000001b282 l     F __TEXT,__text _pcap_get_debug
000000000001b28e l     F __TEXT,__text _pcap_set_debug
000000000001b29a l     F __TEXT,__text _pcap_get_lval
000000000001b2a7 l     F __TEXT,__text _pcap_set_lval
000000000001b2b4 l     F __TEXT,__text _pcap_lex_init
000000000001b32c l     F __TEXT,__text _pcap_lex_init_extra
000000000001b3ba l     F __TEXT,__text _pcap_lex_destroy
000000000001b42b l     F __TEXT,__text _pcap_realloc
000000000001b438 l     F __TEXT,__text _pcap_parse
000000000001d658 l     F __TEXT,__text _str2tok
0000000000023600 l     O __TEXT,__const _bpf_open.cloning_device
0000000000023610 l     O __TEXT,__const _charmap
0000000000023781 l     O __TEXT,__const _gen_broadcast.ebroadcast
00000000000237d0 l     O __TEXT,__const _map
0000000000023890 l     O __TEXT,__const _yy_ec
0000000000023c90 l     O __TEXT,__const _yy_accept
0000000000024a90 l     O __TEXT,__const _yy_chk
0000000000028770 l     O __TEXT,__const _yy_base
0000000000029900 l     O __TEXT,__const _yy_def
000000000002aa90 l     O __TEXT,__const _yy_meta
000000000002ab70 l     O __TEXT,__const _yy_nxt
000000000002e850 l     O __TEXT,__const _yypact
000000000002eaa0 l     O __TEXT,__const _yytranslate
000000000002ec20 l     O __TEXT,__const _yycheck
000000000002f270 l     O __TEXT,__const _yytable
000000000002f8c0 l     O __TEXT,__const _yydefact
000000000002f9f0 l     O __TEXT,__const _yyr2
000000000002fad0 l     O __TEXT,__const _yyr1
000000000002fbb0 l     O __TEXT,__const _yypgoto
000000000002fc10 l     O __TEXT,__const _yydefgoto
0000000000030030 l     O __DATA_CONST,__const _dlt_choices
0000000000030e90 l     O __DATA_CONST,__const _tstamp_type_choices
0000000000030fc0 l     O __DATA_CONST,__const _llc_db
0000000000031010 l     O __DATA_CONST,__const _check_headers
0000000000031020 l     O __DATA_CONST,__const _ieee80211_types
0000000000031080 l     O __DATA_CONST,__const _ieee80211_type_subtypes
00000000000310c0 l     O __DATA_CONST,__const _llc_s_subtypes
0000000000031100 l     O __DATA_CONST,__const _llc_u_subtypes
0000000000031190 l     O __DATA_CONST,__const _ieee80211_mgt_subtypes
00000000000312e0 l     O __DATA_CONST,__const _ieee80211_ctl_subtypes
0000000000031350 l     O __DATA_CONST,__const _ieee80211_data_subtypes
00000000000341f0 l     O __DATA,__data __dyld_private
00000000000342d0 l     O __DATA,__bss _bpf_open.no_cloning_bpf
00000000000342e0 l     O __DATA,__bss _pcap_init.initialized
00000000000342f0 l     O __DATA,__bss _pcap_lookupdev.device
0000000000034310 l     O __DATA,__bss _pcap_datalink_val_to_description_or_dlt.unkbuf
0000000000034340 l     O __DATA,__bss _pcap_statustostr.ebuf
000000000003435c l     O __DATA,__bss _did_atexit
0000000000034360 l     O __DATA,__bss _pcaps_to_close
0000000000034368 l     O __DATA,__bss _pcap_next_etherent.e
00000000000343f0 l     O __DATA,__bss _bpf_image.image
00000000000344f0 l     O __DATA,__common _pcap_utf_8_mode
00000000000344f4 l     O __DATA,__common _pcap_new_api
000000000001953c g     F __TEXT,__text _bpf_dump
0000000000019528 g     F __TEXT,__text _bpf_filter
00000000000185cc g     F __TEXT,__text _bpf_image
0000000000019532 g     F __TEXT,__text _bpf_validate
0000000000034200 g     O __DATA,__data _eproto_db
00000000000054d7 g     F __TEXT,__text _pcap_activate
0000000000005876 g     F __TEXT,__text _pcap_breakloop
0000000000005c84 g     F __TEXT,__text _pcap_bufsize
0000000000004568 g     F __TEXT,__text _pcap_can_set_rfmon
00000000000057d2 g     F __TEXT,__text _pcap_close
00000000000069ed g     F __TEXT,__text _pcap_compile
0000000000007484 g     F __TEXT,__text _pcap_compile_nopcap
0000000000005006 g     F __TEXT,__text _pcap_create
0000000000005881 g     F __TEXT,__text _pcap_datalink
0000000000005897 g     F __TEXT,__text _pcap_datalink_ext
0000000000005aa9 g     F __TEXT,__text _pcap_datalink_name_to_val
0000000000005aff g     F __TEXT,__text _pcap_datalink_val_to_description
0000000000005b2c g     F __TEXT,__text _pcap_datalink_val_to_description_or_dlt
0000000000005a48 g     F __TEXT,__text _pcap_datalink_val_to_name
0000000000004674 g     F __TEXT,__text _pcap_dispatch
0000000000016b42 g     F __TEXT,__text _pcap_dump
000000000001720d g     F __TEXT,__text _pcap_dump_close
00000000000171d9 g     F __TEXT,__text _pcap_dump_file
00000000000171f6 g     F __TEXT,__text _pcap_dump_flush
0000000000016d8e g     F __TEXT,__text _pcap_dump_fopen
00000000000171e2 g     F __TEXT,__text _pcap_dump_ftell
00000000000171ec g     F __TEXT,__text _pcap_dump_ftell64
0000000000016ba2 g     F __TEXT,__text _pcap_dump_open
0000000000016dea g     F __TEXT,__text _pcap_dump_open_append
0000000000015a76 g     F __TEXT,__text _pcap_ether_aton
0000000000015b14 g     F __TEXT,__text _pcap_ether_hostton
0000000000005c9a g     F __TEXT,__text _pcap_file
0000000000005ca4 g     F __TEXT,__text _pcap_fileno
00000000000046de g     F __TEXT,__text _pcap_findalldevs
000000000001638b g     F __TEXT,__text _pcap_fopen_offline
0000000000015fff g     F __TEXT,__text _pcap_fopen_offline_with_tstamp_precision
0000000000005958 g     F __TEXT,__text _pcap_free_datalinks
0000000000004611 g     F __TEXT,__text _pcap_free_tstamp_types
0000000000004728 g     F __TEXT,__text _pcap_freealldevs
00000000000074e9 g     F __TEXT,__text _pcap_freecode
0000000000005cb9 g     F __TEXT,__text _pcap_get_required_select_timeout
0000000000005cad g     F __TEXT,__text _pcap_get_selectable_fd
00000000000054cb g     F __TEXT,__text _pcap_get_tstamp_precision
0000000000005cf0 g     F __TEXT,__text _pcap_geterr
0000000000005cfd g     F __TEXT,__text _pcap_getnonblock
00000000000044c2 g     F __TEXT,__text _pcap_init
0000000000006108 g     F __TEXT,__text _pcap_inject
0000000000005c42 g     F __TEXT,__text _pcap_is_swapped
000000000000371b g     F __TEXT,__text _pcap_lib_version
00000000000058ad g     F __TEXT,__text _pcap_list_datalinks
0000000000004573 g     F __TEXT,__text _pcap_list_tstamp_types
0000000000004d0a g     F __TEXT,__text _pcap_lookupdev
0000000000004dcc g     F __TEXT,__text _pcap_lookupnet
000000000000581a g     F __TEXT,__text _pcap_loop
0000000000005c58 g     F __TEXT,__text _pcap_major_version
0000000000005c6e g     F __TEXT,__text _pcap_minor_version
000000000001562b g     F __TEXT,__text _pcap_nametoaddr
0000000000015661 g     F __TEXT,__text _pcap_nametoaddrinfo
000000000001593c g     F __TEXT,__text _pcap_nametoeproto
000000000001598f g     F __TEXT,__text _pcap_nametollc
00000000000156a9 g     F __TEXT,__text _pcap_nametonetaddr
00000000000156c0 g     F __TEXT,__text _pcap_nametoport
000000000001583a g     F __TEXT,__text _pcap_nametoportrange
0000000000015922 g     F __TEXT,__text _pcap_nametoproto
0000000000004639 g     F __TEXT,__text _pcap_next
0000000000015b57 g     F __TEXT,__text _pcap_next_etherent
000000000000467e g     F __TEXT,__text _pcap_next_ex
000000000000618d g     F __TEXT,__text _pcap_offline_filter
0000000000006525 g     F __TEXT,__text _pcap_open_dead
00000000000061af g     F __TEXT,__text _pcap_open_dead_with_tstamp_precision
000000000000567b g     F __TEXT,__text _pcap_open_live
00000000000161e1 g     F __TEXT,__text _pcap_open_offline
0000000000015f15 g     F __TEXT,__text _pcap_open_offline_with_tstamp_precision
0000000000005cc6 g     F __TEXT,__text _pcap_perror
00000000000060b4 g     F __TEXT,__text _pcap_sendpacket
00000000000053fc g     F __TEXT,__text _pcap_set_buffer_size
0000000000005962 g     F __TEXT,__text _pcap_set_datalink
00000000000053b7 g     F __TEXT,__text _pcap_set_immediate_mode
0000000000005262 g     F __TEXT,__text _pcap_set_promisc
00000000000052a7 g     F __TEXT,__text _pcap_set_rfmon
0000000000005220 g     F __TEXT,__text _pcap_set_snaplen
00000000000052ec g     F __TEXT,__text _pcap_set_timeout
0000000000005445 g     F __TEXT,__text _pcap_set_tstamp_precision
0000000000005331 g     F __TEXT,__text _pcap_set_tstamp_type
0000000000005e81 g     F __TEXT,__text _pcap_setdirection
0000000000005e73 g     F __TEXT,__text _pcap_setfilter
0000000000005d97 g     F __TEXT,__text _pcap_setnonblock
0000000000005c2c g     F __TEXT,__text _pcap_snapshot
0000000000005eec g     F __TEXT,__text _pcap_stats
000000000000562b g     F __TEXT,__text _pcap_statustostr
0000000000005e69 g     F __TEXT,__text _pcap_strerror
0000000000005b7f g     F __TEXT,__text _pcap_tstamp_type_name_to_val
0000000000005bff g     F __TEXT,__text _pcap_tstamp_type_val_to_description
0000000000005bd2 g     F __TEXT,__text _pcap_tstamp_type_val_to_name
00000000000341f8 g     O __DATA,__data _pcap_version
0000000000000000         *UND* ____chkstk_darwin
0000000000000000         *UND* ___bzero
0000000000000000         *UND* ___error
0000000000000000         *UND* ___memset_chk
0000000000000000         *UND* ___stack_chk_fail
0000000000000000         *UND* ___stack_chk_guard
0000000000000000         *UND* ___stderrp
0000000000000000         *UND* ___stdinp
0000000000000000         *UND* ___stdoutp
0000000000000000         *UND* ___strlcpy_chk
0000000000000000         *UND* _abort
0000000000000000         *UND* _asprintf
0000000000000000         *UND* _atexit
0000000000000000         *UND* _calloc
0000000000000000         *UND* _clearerr
0000000000000000         *UND* _close
0000000000000000         *UND* _ether_hostton
0000000000000000         *UND* _exit
0000000000000000         *UND* _fclose
0000000000000000         *UND* _fcntl
0000000000000000         *UND* _feof
0000000000000000         *UND* _ferror
0000000000000000         *UND* _fflush
0000000000000000         *UND* _fileno
0000000000000000         *UND* _fopen
0000000000000000         *UND* _fprintf
0000000000000000         *UND* _fread
0000000000000000         *UND* _free
0000000000000000         *UND* _freeaddrinfo
0000000000000000         *UND* _freeifaddrs
0000000000000000         *UND* _fseek
0000000000000000         *UND* _ftell
0000000000000000         *UND* _ftello
0000000000000000         *UND* _fwrite
0000000000000000         *UND* _getaddrinfo
0000000000000000         *UND* _getc
0000000000000000         *UND* _gethostbyname
0000000000000000         *UND* _getifaddrs
0000000000000000         *UND* _getnetbyname
0000000000000000         *UND* _getprotobyname
0000000000000000         *UND* _ioctl
0000000000000000         *UND* _longjmp
0000000000000000         *UND* _malloc
0000000000000000         *UND* _memcpy
0000000000000000         *UND* _memset
0000000000000000         *UND* _open
0000000000000000         *UND* _printf
0000000000000000         *UND* _puts
0000000000000000         *UND* _read
0000000000000000         *UND* _realloc
0000000000000000         *UND* _setjmp
0000000000000000         *UND* _snprintf
0000000000000000         *UND* _socket
0000000000000000         *UND* _sscanf
0000000000000000         *UND* _strcat
0000000000000000         *UND* _strchr
0000000000000000         *UND* _strcmp
0000000000000000         *UND* _strdup
0000000000000000         *UND* _strerror
0000000000000000         *UND* _strerror_r
0000000000000000         *UND* _strlcpy
0000000000000000         *UND* _strlen
0000000000000000         *UND* _strncmp
0000000000000000         *UND* _uname
0000000000000000         *UND* _vsnprintf
0000000000000000         *UND* _write
0000000000000000         *UND* dyld_stub_binder
emrainey commented 2 years ago

I submitted a Pull Request for this change, can you take a look @karpierz ?

karpierz commented 2 years ago

Thanks! Done.