|
#define | PR_SLOWHZ 2L /* 2 slow timeouts per second */ |
|
#define | PR_FASTHZ 5L /* 5 fast timeouts per second */ |
|
#define | PR_ATOMIC 0x01 /* exchange atomic messages only */ |
|
#define | PR_ADDR 0x02 /* addresses given with messages */ |
|
#define | PR_CONNREQUIRED 0x04 /* connection required by protocol */ |
|
#define | PR_WANTRCVD 0x08 /* want PRU_RCVD calls */ |
|
#define | PR_RIGHTS 0x10 /* passes capabilities */ |
|
#define | PR_IMPLOPCL 0x20 /* implied open/close */ |
|
#define | PR_LASTHDR 0x40 /* enforce ipsec policy; last header */ |
|
#define | PRU_ATTACH 0 /* attach protocol to up */ |
|
#define | PRU_DETACH 1 /* detach protocol from up */ |
|
#define | PRU_BIND 2 /* bind socket to address */ |
|
#define | PRU_LISTEN 3 /* listen for connection */ |
|
#define | PRU_CONNECT 4 /* establish connection to peer */ |
|
#define | PRU_ACCEPT 5 /* accept connection from peer */ |
|
#define | PRU_DISCONNECT 6 /* disconnect from peer */ |
|
#define | PRU_SHUTDOWN 7 /* won't send any more data */ |
|
#define | PRU_RCVD 8 /* have taken data; more room now */ |
|
#define | PRU_SEND 9 /* send this data */ |
|
#define | PRU_ABORT 10 /* abort (fast DISCONNECT, DETATCH) */ |
|
#define | PRU_CONTROL 11 /* control operations on protocol */ |
|
#define | PRU_SENSE 12 /* return status into m */ |
|
#define | PRU_RCVOOB 13 /* retrieve out of band data */ |
|
#define | PRU_SENDOOB 14 /* send out of band data */ |
|
#define | PRU_SOCKADDR 15 /* fetch socket's address */ |
|
#define | PRU_PEERADDR 16 /* fetch peer's address */ |
|
#define | PRU_CONNECT2 17 /* connect two sockets */ |
|
#define | PRU_FASTTIMO 18 /* 200ms timeout */ |
|
#define | PRU_SLOWTIMO 19 /* 500ms timeout */ |
|
#define | PRU_PROTORCV 20 /* receive from below */ |
|
#define | PRU_PROTOSEND 21 /* send to below */ |
|
#define | PRU_SEND_EOF 22 /* send and close */ |
|
#define | PRU_NREQ 22 |
|
#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 /* deprecated (use PRC_UNREACH_HOST) */ |
|
#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 */ |
|
#define | PRC_NCMDS 22 |
|
#define | PRC_IS_REDIRECT(cmd) ((cmd) >= PRC_REDIRECT_NET && (cmd) <= PRC_REDIRECT_TOSHOST) |
|
#define | PRCO_GETOPT 0 |
|
#define | PRCO_SETOPT 1 |
|
#define | PRCO_NCMDS 2 |
|