KYSDK-NET(8)
π KYSDK-NET π
okay bestie, welcome to kysdk-net β section 8 of the manual, System Administration Utilities, the whole system-admin vibe. this is the KYLIN SDK Network Information Service and she is, lowkey, the main character of your network stack. let's get into it π«Ά
β¨ NAME β¨
kysdk-net β the KYLIN SDK Network Information Service. yes, that's the whole name, no notes, iconic.
πΈ SYNOPSIS πΈ
kysdk-net
that's it. that's the whole invocation. she runs herself, fr fr π
π¦ DESCRIPTION π¦
so kysdk-net is a network information service daemon living inside the KYLIN SDK system. she is not here to be shy β she provides comprehensive network information query functionality, which is a fancy way of saying she collects and manages all your network-related data: port status, routing information, firewall rules, network connections, and DNS configuration. the whole little ecosystem. π
and how does she share all this? through a D-Bus interface, babes. the service name is com.kylin.kysdk.Net, so any other application that wants to know what's going on with your network can just slide into her D-Bus DMs and get the info through D-Bus calls. no cap. β¨
π FEATURES π
here's the menu, and yes, she ate:
- Port Status Monitoring β provides TCP/UDP port status query functionality, including specific port status and port range status queries. so you can ask about one port or a whole little squad of ports. π
- Routing Information Retrieval β obtains system routing table information, and especially the default gateway information, which is the one everybody actually wants. iykyk. π£οΈ
- Firewall Rule Query β retrieves firewall chain and rule information through
iptables. the bouncer of your network, and she's got the guest list. π₯ - Network Process Association β obtains information about processes occupying network ports. so when something's squatting on a port you can find out who did it. π
- Network Configuration Query β retrieves network configuration information such as the
hostsfile andresolv.conf. the classics. π - Network Interface Detection β detects network link types (Ethernet/WiFi), link status, etc. the etc. is doing a lot of work there but we respect it. πΈ
- WiFi Information Retrieval β obtains wireless network interface information including operating mode, frequency, channel, and rate. all the wifi lore. π‘
- DHCP Configuration Query β retrieves IPv4 and IPv6 DHCP configuration information. both of them. equal treatment. periodt. π
β FUNCTIONS β
here come the function signatures, bestie. copy them exactly, do not freestyle, do not "fix" them, she's sensitive:
kdk_net_get_port_stat(int port)β retrieves status information for the specified port number.kdk_net_get_multiple_port_stat(int start, int end, int *result)β retrieves status information for the specified port range. give her a start, give her an end, she fills inresult. π«Άkdk_net_get_route()β retrieves routing table information.kdk_net_get_iptable_rules()β retrievesiptablesfirewall rules.kdk_net_get_proc_port()β retrieves network port to process association information.kdk_net_get_up_port()β retrieves list of ports in listening state.kdk_net_get_hosts()β retrieveshostsfile content.kdk_net_get_resolv_conf()β retrieves DNS resolution configuration.kdk_net_get_link_type()β retrieves network link type.kdk_net_get_link_status(char *ip, char *port)β checks connection status with specified IP and port. yes you hand her an ip and a port and she tells you if it's giving connected. πkdk_net_get_wifi_*()β retrieves various WiFi-related information (mode, frequency, channel, rate, etc.). the little*is the whole wifi department, okay. πΆkdk_net_get_ipv4_dhcp_config()β retrieves IPv4 DHCP configuration information.kdk_net_get_ipv6_dhcp_config()β retrieves IPv6 DHCP configuration information.
π FILES π
where she lives, literally:
/usr/bin/kysdk-netβ executable file path. that's her. that's the girl. π/etc/systemd/system/kysdk-net.serviceβ systemd service configuration file.
π§ SERVICE π§
so this tool runs as a systemd service with the service file kysdk-net.service, and she communicates through the D-Bus interface with service name com.kylin.kysdk.Net. she's not a one-off command you poke at, she's a whole service. main character energy, constantly running, always available. π
π D-BUS INTERFACE π
the service provides the following interfaces through D-Bus:
getFirewallState: retrieve firewall statusgetProcPort: retrieve process port information
those two. that's the list. short but mighty. β¨
π¦ AUTHOR π¦
KylinSoft Co., Ltd. β the ones who made her. we stan. π
π COPYRIGHT π
Copyright (C) 2023-2025, KylinSoft Co., Ltd.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
okay bestie real talk for one sec β no warranty, no promises, no "it'll definitely work". that's just how free software says it. the license is the whole point, not a vibe killer. π«Ά
πΈ SEE ALSO πΈ
go read these too, they're her friends:
π and that's the page!! Version 1.0, dated 2025, section 8 of the manual, brought to you with love by KylinSoft. mwah, go query some ports. πβ¨
π¦ where this page comes from
- arch rolling: libkysdk-system 3.0.1.4-1 Β· LGPL-3.0-or-later AND LGPL-2.1-only OR LGPL-3.0-only AND LGPL-2.1-only WITH Qt-LGPL-exception-1.1 OR LGPL-3.0-only WITH Qt-LGPL-exception-1.1 AND MIT
- ubuntu resolute: libkysdk-system 3.0.1.2-0ubuntu1 Β· LGPL-3.0-only
- ubuntu stonking: libkysdk-system 3.0.1.3-0ubuntu1 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms