Post

Replies

Boosts

Views

Activity

Reply to Cast or convert Network.NWInterface to nw_interface_t
I have been writing a router suing system network extension(NEAppProxyProvider). Its task is to send traffic to different network interfaces based on bundle id. From what I understood there is no way to convert between nw_interface_t  and Network.NWInterface types and I should use nw_path_monitor nw_path_enumerate_interfaces to get an instance of nw_interface_t and search its name in NWInterface list received by NWPathMonitor path.availableInterfaces
Jul ’21
Reply to When to close NEAppProxyUDPFlow?
So, I think I understood how things work. Since the transport layer(my transparent proxy) can't decide if more data is coming from the remote side of the connection or not it should not do that. And rely on the app layer which can. From practical tests, readDatagrams callback will not return empty the datagrams and remote endpoints arrays(EOF sign) until the app that opened socket(flow) is satisfied with the number of datagrams received from the remote side. So, to summarize: Close connection and flow in case of errors Close flow as per documentation to readDatagrams function: If the datagrams and remoteEndpoints arrays are non-nil but are empty, then no more datagrams can be subsequently read from the flow.
Aug ’21
Reply to Remove Widget from Notification Center programmatically
Hi, miserya Have you found any solution? I have a custom uninstaller that deletes the .app file but the widget remains on the notifications center and does nothing
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’21
Reply to Cast or convert Network.NWInterface to nw_interface_t
I have been writing a router suing system network extension(NEAppProxyProvider). Its task is to send traffic to different network interfaces based on bundle id. From what I understood there is no way to convert between nw_interface_t  and Network.NWInterface types and I should use nw_path_monitor nw_path_enumerate_interfaces to get an instance of nw_interface_t and search its name in NWInterface list received by NWPathMonitor path.availableInterfaces
Replies
Boosts
Views
Activity
Jul ’21
Reply to Cast or convert Network.NWInterface to nw_interface_t
Thanks, Matt I have opened an enhancement request. Feedback ID: FB9386412
Replies
Boosts
Views
Activity
Jul ’21
Reply to When to close NEAppProxyUDPFlow?
Thanks for the quick reply Matt, On practical tests, I have never seen scenario number 2. Is this some agreement that an empty UDP payload is considered as EOF?
Replies
Boosts
Views
Activity
Aug ’21
Reply to When to close NEAppProxyUDPFlow?
So, I think I understood how things work. Since the transport layer(my transparent proxy) can't decide if more data is coming from the remote side of the connection or not it should not do that. And rely on the app layer which can. From practical tests, readDatagrams callback will not return empty the datagrams and remote endpoints arrays(EOF sign) until the app that opened socket(flow) is satisfied with the number of datagrams received from the remote side. So, to summarize: Close connection and flow in case of errors Close flow as per documentation to readDatagrams function: If the datagrams and remoteEndpoints arrays are non-nil but are empty, then no more datagrams can be subsequently read from the flow.
Replies
Boosts
Views
Activity
Aug ’21
Reply to Skip alert about a system extension
Matt, Thank you. Unfortunately, I am not in a managed environment. But anyway, it is good to know that the alert should always appear without SystemExtensions profile configured and installed and I am not doing something wrong to trigger it.
Replies
Boosts
Views
Activity
Aug ’21
Reply to How to correctly get bytes transmitted over virtual interface?
Matt, Thank you for the response. Unfortunately, I am not using custom NEPacketTunnelProvider.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’21