If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since september. Please use hippie2000@webnmail.de instead.

0
U

Property:pcpd (avmcmd)

From BoxMatrix


BoxMatrix >> Shell-Commands >> pcpd (avmcmd) @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Gallery

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Info
  
Name-Collision - multiple objects in this wiki use the name pcpd!
pcpd (avmcmd) Port Control Protocol (PCP) daemon.
pcpd (process) Port Control Protocol (PCP) daemon.
pcpd (watchdog) Port Control Protocol (PCP) daemon.

AVM-Command

Goto:   Endpoints  -  Events  -  Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

fw 7.29 help:

root@fritz2:/var/mod/root# pcpd -?

usage: pcpd pcpd [options]

options:
  -?                 - print this help
  -f                 - run in forground. (NOTSET)
  -s                 - stop daemon. (NOTSET)
  -v                 - verbose. (NOTSET)
  -I                 - send pcpd a SIGHUP. (NOTSET)
  -p STRING          - Pidfile. ("/var/run/pcpd.pid")
  -i STRING          - interface to work on. ("lan")
  -m INTEGER         - maximum lifetime. (600)
  -D STRING          - switch debug logs on. (FUNC)

start server:   pcpd
stop server :   pcpd -s

Endpoints

aicmd endpoint(s) provided by pcpd, with these functions: (fw 7.29)

root@fritz2:/var/mod/root# aicmd pcpd

# provided by pcpd: - fw 6.88+

HELP                                     - show help
SLABDUMP                                 - show slab allocation
SLABSHOW                                 - show slab information
QUIT                                     - disconnect

show clients                             - show clients
show fwacl                               - show fwacl

# provided by libavmpcp.so: - fw 7.29+

libavmpcp show pcpinfo                   - show pcpinfo

# provided by libewnwlinux.so: - fw 7.01+

ewnwlinux show csockshell                - show shells running
ewnwlinux show genetlink                 - show gerneric netlink families

# provided by libavmcsock.so: - fw 7.01+

avmcsock show csock                      - show all csock
avmcsock show dnsconfig                  - show all dns context
avmcsock show timercb                    - show all timer
avmcsock show debughandles               - show all debughandles
avmcsock show cprocess                   - show all processes
avmcsock set debug                       - set debug flags

# provided by libavmcsock.so: - fw 7.29+

avmcsock show cbcontext                  - show all cbdata
avmcsock show daemon                     - show daemon status
avmcsock show cbuf                       - show cbuf status

# provided by libavmcsock.so: - fw 7.39+

avmcsock getsymbol <address>             - get symbol for address
avmcsock show dnsglobal                  - show all dns global values
avmcsock show dnscache                   - show cache
avmcsock show dnsqueries                 - show all pending queries
avmcsock show avmipc [endpoint shmatch]  - show avmipc events and states
avmcsock ctimer show                     - show all timer
avmcsock ctimer overview                 - show ctimer overview
avmcsock iotrace format unctrl|hexdump   - set format for csock iotrace
avmcsock iotrace file                    - enable iotrace to file
avmcsock iotrace enable                  - enable iotrace via debugmsg
avmcsock iotrace disable                 - disable iotrace
avmcsock iotrace match help|<match>      - show allowed matches or set match
avmcsock iotrace reset                   - remove all matches
avmcsock iotrace show                    - show configuration

Events

Daily updated index of AVM-Events and AVMIPC-Datastore nodes affecting this command. Last update: 2022-12-05 06:45 GMT.
The owners of Event-Sinks and Event-Sources are manual research, which may be incomplete or even wrong.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.
A ** in the Mod column marks info from Supportdata2 probes, which by their nature will stay way more incomplete.
A - in the Mod column marks manual research, the Firmware then shows where the item occurs, not the Relation.

Relation Typ Object Mod Firmware Info Origin
Netlink family NETLINK_GENERIC 1** 7.29 Generic Netlink (genetlink) family for simplified netlink usage (#16) Linux
Multicast group AVMGGRP_GENETLINK_ALL 2** 6.87 - 6.88 Hackish way to subscribe to all genetlink groups AVM
Multicast group AVMGGRP_L2TP 8** 7.01 - 7.39 Interface of the L2TP tunneling server l2tpv3d AVM
Multicast group AVMGGRP_NLCTRL_NOTIFY 11** 7.01 - 7.39 Notification about changes in subscribed genetlink groups AVM
Multicast group AVMGGRP_THERMAL_EVENT 1** 7.29 TODO AVM
Multicast group AVMGGRP_UNKNOWN_0001 2** 7.29 - 7.30 TODO AVM
Multicast group AVMGGRP_UNKNOWN_0008 1** 7.29 TODO AVM
Netlink family NETLINK_ROUTE 14** 7.01 - 7.39 Communication channel between routing dæmons and the kernel packet forwarding (#0) Linux
Multicast group RTMGRP_IPV4_IFADD 17** 6.55 - 7.39 IPv4 address change of a Network-Interface Linux
Multicast group RTMGRP_IPV4_ROUTE 17** 6.55 - 7.39 IPv4 Routing Table change Linux
Multicast group RTMGRP_IPV6_IFADDR 17** 6.55 - 7.39 IPv6 address change of a Network-Interface Linux
Multicast group RTMGRP_IPV6_ROUTE 17** 6.55 - 7.39 IPv6 Routing Table change Linux
Multicast group RTMGRP_LINK 17** 6.55 - 7.39 Creation / deletion or up / down change of a Network-Interface. Linux
Multicast group RTMGRP_NOTIFY 14** 7.01 - 7.39 Enable notification about changes in subscribed rtnetlink groups Linux
Multicast group RTMGRP_TC 14** 7.01 - 7.39 Packet Scheduler Traffic Control change Linux
Endpoint sock me_pcpd-pcp-($num).ctl 49* 6.25 - 7.50 avmipc endpoint of libavmpcp.so for pcpd AVM
Listens to avmipc libpcp_dump 17** 7.01 - 7.39 Trigger event to dump PCP context info. AVM
Listens to avmipc libpcp_send_itemstatus 17** 7.01 - 7.39 Trigger event to send all PCP port openings. AVM
Listens to avmipc pcpserver_changed 17** 7.01 - 7.39 Trigger event to inform about PCP server changes. AVM
Endpoint sock me_pcpd.ctl 49* 6.25 - 7.50 avmipc_command endpoint of pcpd AVM
Listens to avmipc @ 16** 7.12 - 7.39 Special event for listeners of nameless private messages. AVM
Listens to avmipc aicmd_listener 16** 7.12 - 7.39 Special event covering all aicmd compatible listeners. AVM
Listens to avmipc STATE_FWACL_FWACLCFG 17** 7.01 - 7.39 State of the firewall access control list (FWACL). AVM
Command cmd pcpd (avmcmd) 64 6.10 - 7.50 Port Control Protocol (PCP) daemon. AVM
Sends avmipc libpcp_itemstatus - 7.01 - 7.39 Target event to send PCP port openings to. AVM
25 event relations for this command

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.39 source files:

$ strings /sbin/pcpd | grep -e '\.c$' -e '\.cpp$'

ar7/pcpd/pcpd.c  

Dependencies

Daily updated index of all dependencies of this command. Last update: 2022-12-05 07:30 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Started by serv pcpd.service 22 7.39 - 7.50 supervisor service for pcpd. AVM
Runs as proc pcpd (process) 49* 6.25 - 7.50 Port Control Protocol (PCP) daemon. AVM
Registers wdog pcpd (watchdog) 49* 6.25 - 7.50 Port Control Protocol (PCP) daemon. AVM
Serving port Port-5350-udp 21* 6.51 - 7.30 PCP - Port Control Protocol - client AVM
Serving port Port-5351-udp 49* 6.25 - 7.50 PCP - Port Control Protocol - server AVM
Serving sock me_pcpd-pcp-($num).ctl 49* 6.25 - 7.50 avmipc endpoint of libavmpcp.so for pcpd AVM
Serving sock me_pcpd.ctl 49* 6.25 - 7.50 avmipc_command endpoint of pcpd AVM
Depends on lib ld.so 25 7.08 - 7.39 Dynamic linker / loader Linux
Depends on lib libavmauth.so 50 6.50 - 7.31 Fritzbox authentification helpers AVM
Depends on lib libavmcsock.so 64 6.10 - 7.50 Networking, I/O and helper functions AVM
Depends on lib libavmfwacl.so 56 6.35 - 7.50 Maintains the firewall access control list (FWACL). AVM
Depends on lib libavmhmac.so 56 6.35 - 7.31 HMAC / SHA / MD5 hashing. AVM
Depends on lib libavmpcp.so 64 6.10 - 7.50 Port Control Protocol (PCP) API library AVM
Depends on lib libboxlib.so 64 6.10 - 7.31 Box status, logging and statistics functions AVM
Depends on lib libboxnotify.so 1 6.35 boxnotifyd client API (old) AVM
Depends on lib libc.so 64 6.10 - 7.50 Standard C library Linux
Depends on lib libdl.so 54 6.10 - 7.39 Dynamic linking library Linux
Depends on lib libdputil.so 56 6.35 - 7.50 DataPipe / packet utilities AVM
Depends on lib libewnwlinux.so 64 6.10 - 7.50 Linux networking functions AVM
Depends on lib libewnwnet.so 56 6.35 - 7.31 Internet helper functions AVM
Depends on lib libgcc_s.so 30 6.10 - 6.110 GCC low-level runtime library Linux
Depends on lib libpthread.so 54 6.10 - 7.39 POSIX threading library Linux
Depends on lib librt.so 46 6.35 - 7.39 POSIX realtime extensions library Linux
Depends on lib libsvctl.so 40 7.19 - 7.50 supervisor control library AVM
Depends on lib libwdt.so 64 6.10 - 7.50 AVM-Watchdogs management API AVM
Depends on lib libwebsrv.so 56 6.35 - 7.31 HTTP / HTTPS webserver and tools. AVM
Depends on lib libz.so 44 6.83 - 7.50 Zlib compressor / decompressor Linux
27 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2022-12-05 05:58 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 3272 6.20 - 6.88 /sbin 19.5k - 31.4k
FRITZ!Box WLAN 3370 6.10 - 6.55 /sbin 19.5k - 27.7k
FRITZ!Box 3390 6.20 - 6.55 /sbin 19.5k - 27.7k
FRITZ!Box 3490 (main) 6.20 - 7.30 /sbin 19.5k - 35.4k
FRITZ!Box 4020 6.27 - 7.02 /sbin 22.9k - 31.4k
FRITZ!Box 4040 6.50 - 7.39 /sbin 22.5k - 29.6k
FRITZ!Box 4060 7.26 - 7.39 /sbin 29.5k - 29.7k
FRITZ!Box 5490 (main) 6.51 - 7.29 /sbin 27.7k - 35.4k
FRITZ!Box 5491 (main) 7.01 - 7.29 /sbin 31.4k - 35.4k
FRITZ!Box 5530 Fiber (main) 7.21 - 7.30 /sbin 35.3k
FRITZ!Box 5590 Fiber (arm) 7.27 - 7.30 /sbin 29.5k
FRITZ!Box 6320 Cable v2 6.21 /sbin 16.4k
FRITZ!Box 6360 Cable 6.51 /sbin 23.1k
FRITZ!Box 6430 Cable (arm) 6.84 - 7.29 /sbin 26.6k - 33.5k
FRITZ!Box 6430 Cable (atom) 6.84 - 7.29 /sbin 26.6k - 33.5k
FRITZ!Box 6490 Cable (arm) 6.20 - 7.39 /sbin 16.4k - 33.5k
FRITZ!Box 6490 Cable (atom) 6.83 - 7.39 /sbin 26.6k - 33.5k
FRITZ!Box 6590 Cable (arm) 6.83 - 7.39 /sbin 26.6k - 33.5k
FRITZ!Box 6590 Cable (atom) 6.83 - 7.39 /sbin 26.6k - 33.5k
FRITZ!Box 6591 Cable (arm) 7.04 - 7.39 /sbin 27.8k - 37.8k
FRITZ!Box 6591 Cable (atom) 7.04 - 7.39 /sbin 27.8k - 37.8k
FRITZ!Box 6660 Cable (arm) 7.14 - 7.39 /sbin 29.6k - 37.8k
FRITZ!Box 6660 Cable (atom) 7.14 - 7.39 /sbin 29.6k - 37.8k
FRITZ!Box 6690 Cable (arm) 7.28 - 7.39 /sbin 29.6k - 37.8k
FRITZ!Box 6690 Cable (atom) 7.28 - 7.39 /sbin 29.6k - 37.8k
FRITZ!Box 6810 LTE 6.20 - 6.34 /sbin 19.5k - 19.6k
FRITZ!Box 6820 LTE v1 6.40 - 7.29 /sbin 27.5k - 35.4k
FRITZ!Box 6820 LTE v2 6.40 - 7.29 /sbin 27.5k - 35.4k
FRITZ!Box 6820 LTE v3 7.19 - 7.29 /sbin 35.4k
FRITZ!Box 6840 LTE 6.10 - 6.87 /sbin 19.5k - 31.4k
FRITZ!Box 6842 LTE 6.20 - 6.34 /sbin 19.5k - 19.6k
FRITZ!Box 6850 LTE 7.21 - 7.39 /sbin 25.7k - 35.3k
FRITZ!Box 6850 5G 7.24 - 7.39 /sbin 25.7k - 29.6k
FRITZ!Box 6890 LTE 6.84 - 7.39 /sbin 29.9k - 35.4k
FRITZ!Box 6890 LTE v1 6.84 - 7.39 /sbin 29.9k - 35.4k
FRITZ!Box 6890 LTE v2 6.84 - 7.39 /sbin 29.9k - 35.4k
FRITZ!Box 7272 6.10 - 6.88 /sbin 19.5k - 31.4k
FRITZ!Box 7312 6.10 - 6.55 /sbin 19.5k - 27.9k
FRITZ!Box Fon WLAN 7320 6.20 - 6.34 /sbin 19.5k - 19.6k
FRITZ!Box 7330 6.20 - 6.55 /sbin 19.5k - 27.9k
FRITZ!Box 7330 SL 6.20 - 6.55 /sbin 19.5k - 27.9k
FRITZ!Box Fon WLAN 7340 /sbin 19.7k
FRITZ!Box Fon WLAN 7360 SL 6.20 - 6.34 /sbin 19.5k - 19.6k
FRITZ!Box Fon WLAN 7360 v1 6.20 - 6.35 /sbin 19.5k - 19.6k
FRITZ!Box Fon WLAN 7360 v2 6.10 - 6.87 /sbin 19.5k - 31.4k
FRITZ!Box 7362 SL 6.10 - 7.13 /sbin 19.5k - 35.4k
FRITZ!Box 7369 6.30 - 6.32 /sbin 19.6k - 19.7k
FRITZ!Box Fon WLAN 7390 6.20 - 6.87 /sbin 19.6k - 31.4k
FRITZ!Box 7412 6.21 - 6.87 /sbin 19.5k - 31.4k
FRITZ!Box 7430 6.26 - 7.29 /sbin 23.5k - 35.4k
FRITZ!Box 7490 (main) 6.20 - 7.39 /sbin 19.5k - 35.4k
FRITZ!Box 7510 7.30 /sbin 29.5k
FRITZ!Box 7520 6.98 - 7.29 /sbin 26.4k - 29.6k
FRITZ!Box 7520 v2 (arm) 7.30 - 7.31 /sbin 29.6k
FRITZ!Box 7530 6.93 - 7.39 /sbin 25.7k - 29.6k
FRITZ!Box 7530 AX 7.20 - 7.39 /sbin 25.8k - 29.8k
FRITZ!Box 7560 6.51 - 7.29 /sbin 27.1k - 35.4k
FRITZ!Box 7580 6.51 - 7.29 /sbin 27.1k - 35.4k
FRITZ!Box 7581 6.54 - 7.16 /sbin 22.5k - 29.7k
FRITZ!Box 7582 6.83 - 7.16 /sbin 24.7k - 29.7k
FRITZ!Box 7583 7.01 - 7.31 /sbin 31.4k - 35.4k
FRITZ!Box 7583 VDSL 7.19 - 7.31 /sbin 35.3k
FRITZ!Box 7590 6.83 - 7.50 /sbin 29.9k - 35.4k
FRITZ!Box 7590 AX 7.19 - 7.39 /sbin 31.6k - 35.3k
64 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2022-12-05 07:30 GMT.

Firmware Symbol
6.36 - 6.64 FWACL_fwacl_alloc
6.36 - 6.64 FWACL_fwacl_free
6.36 - 6.64 fwacl_free
6.36 - 6.64 fwacl_getcfg
6.36 - 6.64 fwacl_register
6.36 - 6.64 fwacl_setcfg
6.36 - 6.64 fwacl_unregister
6.10 - 7.50 main
8 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.