#include <sys/protosw.h>
sys/protosw.h 24 macros
XXX: this will go away
#define PR_SLOWHZ 2 2 slow timeouts per second
The arguments to the ctlinput routine are
(*protosw[].pr_ctlinput)(cmd, sa, arg, ifnet);
where `cmd' is one of the commands below, `sa' is a pointer to a sockaddr,
`arg' is a `void *' argument used within a protocol family (typically
that's a `struct ipctlparam *') and `ifp' is a pointer to the network interface.
#define PRC_IFDOWN 0 interface transition
#define PRC_ROUTEDEAD 1 select new route if possible ???
#define PRC_IFUP 2 interface has come back up
#define PRC_QUENCH2 3 DEC congestion bit says slow down
#define PRC_QUENCH 4 some one said to slow down
#define PRC_MSGSIZE 5 message size forced drop
#define PRC_HOSTDEAD 6 host appears to be down
#define PRC_HOSTUNREACH 7 #define PRC_UNREACH_NET 8 no route to network
#define PRC_UNREACH_HOST 9 no route to host
#define PRC_UNREACH_PROTOCOL 10 dst says bad protocol
#define PRC_UNREACH_PORT 11 bad port #
#define PRC_UNREACH_SRCFAIL 13 source route failed
#define PRC_REDIRECT_NET 14 net routing redirect
#define PRC_REDIRECT_HOST 15 host routing redirect
#define PRC_REDIRECT_TOSNET 16 redirect for type of service & net
#define PRC_REDIRECT_TOSHOST 17 redirect for tos & host
#define PRC_TIMXCEED_INTRANS 18 packet lifetime expired in transit
#define PRC_TIMXCEED_REASS 19 lifetime expired on reass q
#define PRC_PARAMPROB 20 header incorrect
#define PRC_UNREACH_ADMIN_PROHIB 21 packet administrativly prohibited
Generated 2026-09-08 from the headers of one specific machine (macOS 26.4.1, SDK 26.4, arm64) — not official documentation. About & caveats