KYSDK-NET(8)

πŸ“¦ version 3.0.1.4, in arch rolling, ubuntu resolute, ubuntu stonking

πŸ’– 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 hosts file and resolv.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 in result. 🫢
  • kdk_net_get_route() β€” retrieves routing table information.
  • kdk_net_get_iptable_rules() β€” retrieves iptables firewall 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() β€” retrieves hosts file 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 status
  • getProcPort: 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 (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