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 years. 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 Media

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  -  Logs  -  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

msgsend endpoint(s) provided by pcpd, with these functions: (endpoints + commands, collected manually)

-a pcpd ""                                 # from showpcpinfo 7.57

Logs

This is a subset of the Temp-Files section, filtered for logfiles of pcpd:

Daily updated index of all pcpd logfiles found scanning Supportdata-Probes. Last update: 2024-03-29 07:10 GMT.
The label (temp) in the Logfile column shows there are other objects in this wiki using this name.
The Mod column shows the amount of models using the respective logfile. Click the column header to sort by this number.

Events

Daily updated index of AVM-Events and AVMIPC-Datastore nodes affecting this command. Last update: 2023-12-10 05:13 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 9** 7.01 - 7.51 Interface of the L2TP tunneling server l2tpv3d AVM
Multicast group AVMGGRP_NLCTRL_NOTIFY 12** 7.01 - 7.51 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 16** 7.01 - 7.51 Communication channel between routing dæmons and the kernel packet forwarding (#0) Linux
Multicast group RTMGRP_IPV4_IFADD 19** 6.55 - 7.51 IPv4 address change of a Network-Interface Linux
Multicast group RTMGRP_IPV4_ROUTE 19** 6.55 - 7.51 IPv4 Routing Table change Linux
Multicast group RTMGRP_IPV6_IFADDR 19** 6.55 - 7.51 IPv6 address change of a Network-Interface Linux
Multicast group RTMGRP_IPV6_ROUTE 19** 6.55 - 7.51 IPv6 Routing Table change Linux
Multicast group RTMGRP_LINK 19** 6.55 - 7.51 Creation / deletion or up / down change of a Network-Interface. Linux
Multicast group RTMGRP_NOTIFY 16** 7.01 - 7.51 Enable notification about changes in subscribed rtnetlink groups Linux
Multicast group RTMGRP_TC 16** 7.01 - 7.51 Packet Scheduler Traffic Control change Linux
Endpoint sock me_pcpd-pcp-($num).ctl 49* 6.25 - 7.51 avmipc endpoint of libavmpcp.so for pcpd AVM
Listens to avmipc libpcp_dump 19** 7.01 - 7.51 Trigger event to dump PCP context info. AVM
Listens to avmipc libpcp_send_itemstatus 19** 7.01 - 7.51 Trigger event to send all PCP port openings. AVM
Listens to avmipc pcpserver_changed 19** 7.01 - 7.51 Trigger event to inform about PCP server changes. AVM
Endpoint sock me_pcpd.ctl 49* 6.25 - 7.51 avmipc_command endpoint of pcpd AVM
Listens to avmipc @ 18** 7.12 - 7.51 Special event for listeners of nameless private messages. AVM
Listens to avmipc aicmd_listener 18** 7.12 - 7.51 Special event covering all aicmd compatible listeners. AVM
Listens to avmipc STATE_FWACL_FWACLCFG 19** 7.01 - 7.51 State of the firewall access control list (FWACL). AVM
Command cmd pcpd (avmcmd) 1 Port Control Protocol (PCP) daemon. AVM
Sends avmipc libpcp_itemstatus - 7.01 - 7.51 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: 2024-03-29 08:04 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 47 7.39 - 7.90 supervisor service for pcpd. AVM
Runs as proc pcpd (process) 50* 6.25 - 7.80 Port Control Protocol (PCP) daemon. AVM
Registers wdog pcpd (watchdog) 50* 6.25 - 7.80 Port Control Protocol (PCP) daemon. AVM
Serving port Port-5350-udp 23* 6.51 - 7.61 PCP - Port Control Protocol - client AVM
Serving port Port-5351-udp 50* 6.25 - 7.80 PCP - Port Control Protocol - server AVM
Serving sock me_pcpd-pcp-($num).ctl 50* 6.25 - 7.80 avmipc endpoint of libavmpcp.so for pcpd AVM
Serving sock me_pcpd.ctl 50* 6.25 - 7.80 avmipc_command endpoint of pcpd AVM
Depends on lib ld.so 25 7.08 - 7.90 Dynamic linker / loader Linux
Depends on lib libavmauth.so 50 6.51 - 7.31 Fritzbox authentification helpers AVM
Depends on lib libavmcsock.so 73 6.10 - 7.90 Networking, I/O and helper functions AVM
Depends on lib libavmfwacl.so 65 6.35 - 7.90 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 73 6.10 - 7.90 Port Control Protocol (PCP) API library AVM
Depends on lib libavmwdt.so 5 7.61 - 7.90 AVM-Watchdogs management API. Renamed libwdt.so 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 73 6.10 - 7.90 Standard C library Linux
Depends on lib libdl.so 70 6.10 - 7.90 Dynamic linking library Linux
Depends on lib libdputil.so 65 6.35 - 7.90 DataPipe / packet utilities AVM
Depends on lib libewnwlinux.so 73 6.10 - 7.90 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 70 6.10 - 7.90 POSIX threading library Linux
Depends on lib librt.so 62 6.35 - 7.90 POSIX realtime extensions library Linux
Depends on lib libsvctl.so 52 7.19 - 7.90 supervisor notification library AVM
Depends on lib libwdt.so 72 6.10 - 7.80 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 55 6.83 - 7.90 Zlib compressor / decompressor Linux
28 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-03-29 06:17 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.89 /sbin 19.5k - 31.4k
FRITZ!Box WLAN 3370 6.10 - 6.56 /sbin 19.5k - 27.7k
FRITZ!Box 3390 6.20 - 6.56 /sbin 19.5k - 27.7k
FRITZ!Box 3490 (main) 6.20 - 7.30 /sbin 19.5k - 35.4k
FRITZ!Box 4020 7.39 /sbin 22.9k - 33.8k
FRITZ!Box 4040 6.52 - 7.57 /sbin 22.5k - 33.8k
FRITZ!Box 4060 7.26 - 7.57 /sbin 29.5k - 33.8k
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.80 /sbin 31.6k - 35.3k
FRITZ!Box 5590 Fiber (arm) 7.27 - 7.80 /sbin 29.5k - 33.8k
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.57 /sbin 26.6k - 33.9k
FRITZ!Box 6430 Cable (atom) 6.84 - 7.29 /sbin 26.6k - 33.5k
FRITZ!Box 6490 Cable (arm) 6.20 - 7.57 /sbin 16.4k - 33.9k
FRITZ!Box 6490 Cable (atom) 6.83 - 7.51 /sbin 26.6k - 33.5k
FRITZ!Box 6590 Cable (arm) 6.83 - 7.57 /sbin 26.6k - 33.9k
FRITZ!Box 6590 Cable (atom) 6.83 - 7.51 /sbin 26.6k - 33.5k
FRITZ!Box 6591 Cable (arm) 7.04 - 7.57 /sbin 27.8k - 37.8k
FRITZ!Box 6591 Cable (atom) 7.04 - 7.57 /sbin 27.8k - 37.8k
FRITZ!Box 6660 Cable (arm) 7.14 - 7.57 /sbin 29.6k - 37.8k
FRITZ!Box 6660 Cable (atom) 7.14 - 7.57 /sbin 29.6k - 37.8k
FRITZ!Box 6670 Cable (arm) 7.57 - 7.61 /sbin 33.9k
FRITZ!Box 6670 Cable (atom) 7.61 /sbin 33.9k
FRITZ!Box 6690 Cable (arm) 7.28 - 7.57 /sbin 29.6k - 37.8k
FRITZ!Box 6690 Cable (atom) 7.28 - 7.57 /sbin 29.6k - 37.8k
FRITZ!Box 6810 LTE 6.35 /sbin 19.5k - 19.7k
FRITZ!Box 6820 LTE v1 6.40 - 7.51 /sbin 27.5k - 35.4k
FRITZ!Box 6820 LTE v2 6.40 - 7.51 /sbin 27.5k - 35.4k
FRITZ!Box 6820 LTE v3 7.19 - 7.57 /sbin 31.8k - 35.4k
FRITZ!Box 6840 LTE 6.10 - 7.39 /sbin 19.5k - 33.8k
FRITZ!Box 6842 LTE /sbin 19.5k - 19.6k
FRITZ!Box 6850 LTE 7.21 - 7.58 /sbin 25.7k - 35.3k
FRITZ!Box 6850 5G 7.24 - 7.51 /sbin 25.7k - 33.8k
FRITZ!Box 6890 LTE 6.84 - 7.51 /sbin 29.9k - 35.4k
FRITZ!Box 6890 LTE v1 6.84 - 7.51 /sbin 29.9k - 35.4k
FRITZ!Box 6890 LTE v2 6.84 - 7.51 /sbin 29.9k - 35.4k
FRITZ!Box 7272 6.10 - 7.39 /sbin 19.5k - 33.8k
FRITZ!Box 7312 6.10 - 6.56 /sbin 19.5k - 27.9k
FRITZ!Box Fon WLAN 7320 6.20 - 6.35 /sbin 19.5k - 19.7k
FRITZ!Box 7330 6.20 - 6.56 /sbin 19.5k - 27.9k
FRITZ!Box 7330 SL 6.20 - 6.56 /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.36 /sbin 19.5k - 19.7k
FRITZ!Box Fon WLAN 7360 v2 6.10 - 6.88 /sbin 19.5k - 31.4k
FRITZ!Box 7362 SL 6.10 - 7.14 /sbin 19.5k - 35.4k
FRITZ!Box 7369 6.30 - 6.32 /sbin 19.6k - 19.7k
FRITZ!Box Fon WLAN 7390 /sbin 19.6k - 31.4k
FRITZ!Box 7412 6.21 - 6.88 /sbin 19.5k - 31.4k
FRITZ!Box 7430 6.26 - 7.39 /sbin 23.5k - 35.4k
FRITZ!Box 7490 (main) 6.20 - 7.57 /sbin 19.5k - 35.4k
FRITZ!Box 7510 7.30 - 7.57 /sbin 29.5k - 29.7k
FRITZ!Box 7520 6.98 - 7.51 /sbin 25.7k - 33.8k
FRITZ!Box 7520 v2 (arm) 7.30 - 7.57 /sbin 25.7k - 33.8k
FRITZ!Box 7530 6.98 - 7.56 /sbin 25.7k - 33.8k
FRITZ!Box 7530 AX 7.20 - 7.90 /sbin 25.8k - 33.8k
FRITZ!Box 7560 6.51 - 7.39 /sbin 27.1k - 35.4k
FRITZ!Box 7580 6.53 - 7.30 /sbin 27.1k - 35.4k
FRITZ!Box 7581 6.54 - 7.16 /sbin 22.5k - 29.7k
FRITZ!Box 7582 6.83 - 7.17 /sbin 24.7k - 29.7k
FRITZ!Box 7583 7.01 - 7.57 /sbin 31.4k - 35.4k
FRITZ!Box 7583 VDSL 7.19 - 7.31 /sbin 35.3k
FRITZ!Box 7590 6.83 - 7.90 /sbin 29.9k - 35.4k
FRITZ!Box 7590 AX 7.19 - 7.90 /sbin 31.6k - 35.3k
FRITZ!Repeater 600 7.39 /sbin 33.8k
FRITZ!Repeater 1200 7.39 /sbin 33.8k
FRITZ!WLAN Repeater 1750E 7.39 /sbin 33.8k
FRITZ!Repeater 2400 7.39 /sbin 33.8k
FRITZ!Repeater 3000 7.39 /sbin 33.8k
FRITZ!Repeater 3000 AX 7.39 /sbin 33.8k
FRITZ!Powerline 1260E 7.39 /sbin 33.8k
73 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-03-29 08:04 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.90 main
8 symbols for this command

SMW-Browser

Information is currently being retrieved from the backend.