| version 1.69.4.1, 2005/04/29 11:29:38 |
version 1.70, 2005/02/03 19:20:02 |
|
|
| /* |
/* |
| * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
| * All rights reserved. |
* All rights reserved. |
| * |
* |
| * Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions |
* modification, are permitted provided that the following conditions |
| * are met: |
* are met: |
|
|
| * 3. Neither the name of the project nor the names of its contributors |
* 3. Neither the name of the project nor the names of its contributors |
| * may be used to endorse or promote products derived from this software |
* may be used to endorse or promote products derived from this software |
| * without specific prior written permission. |
* without specific prior written permission. |
| * |
* |
| * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND |
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND |
| * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| Line 271 struct sockaddr_storage { |
|
| Line 271 struct sockaddr_storage { |
|
| #define PF_INET6 AF_INET6 |
#define PF_INET6 AF_INET6 |
| #define PF_IPX AF_IPX /* same format as AF_NS */ |
#define PF_IPX AF_IPX /* same format as AF_NS */ |
| #if defined(_NETBSD_SOURCE) |
#if defined(_NETBSD_SOURCE) |
| #define PF_RTIP pseudo_AF_RTIP /* same format as AF_INET */ |
#define PF_RTIP pseudo_AF_FTIP /* same format as AF_INET */ |
| #define PF_PIP pseudo_AF_PIP |
#define PF_PIP pseudo_AF_PIP |
| #endif |
#endif |
| #define PF_ISDN AF_ISDN /* same as E164 */ |
#define PF_ISDN AF_ISDN /* same as E164 */ |
| Line 359 struct sockcred { |
|
| Line 359 struct sockcred { |
|
| { "arp", CTLTYPE_NODE }, \ |
{ "arp", CTLTYPE_NODE }, \ |
| { "key", CTLTYPE_NODE }, \ |
{ "key", CTLTYPE_NODE }, \ |
| } |
} |
| |
|
| struct kinfo_pcb { |
|
| __uint64_t ki_pcbaddr; /* PTR: pcb addr */ |
|
| __uint64_t ki_ppcbaddr; /* PTR: ppcb addr */ |
|
| __uint64_t ki_sockaddr; /* PTR: socket addr */ |
|
| |
|
| __uint32_t ki_family; /* INT: protocol family */ |
|
| __uint32_t ki_type; /* INT: socket type */ |
|
| __uint32_t ki_protocol; /* INT: protocol */ |
|
| __uint32_t ki_pflags; /* INT: generic protocol flags */ |
|
| |
|
| __uint32_t ki_sostate; /* INT: socket state */ |
|
| __uint32_t ki_prstate; /* INT: protocol state */ |
|
| __int32_t ki_tstate; /* INT: tcp state */ |
|
| __uint32_t ki_tflags; /* INT: tcp flags */ |
|
| |
|
| __uint64_t ki_rcvq; /* U_LONG: receive queue len */ |
|
| __uint64_t ki_sndq; /* U_LONG: send queue len */ |
|
| |
|
| union { |
|
| struct sockaddr _kis_src; /* STRUCT: local address */ |
|
| char _kis_pad[256 + 8]; /* pad to max addr length */ |
|
| } ki_s; |
|
| union { |
|
| struct sockaddr _kid_dst; /* STRUCT: remote address */ |
|
| char _kid_pad[256 + 8]; /* pad to max addr length */ |
|
| } ki_d; |
|
| |
|
| __uint64_t ki_inode; /* INO_T: fake inode number */ |
|
| __uint64_t ki_vnode; /* PTR: if associated with file */ |
|
| __uint64_t ki_conn; /* PTR: control block of peer */ |
|
| __uint64_t ki_refs; /* PTR: referencing socket */ |
|
| __uint64_t ki_nextref; /* PTR: link in refs list */ |
|
| }; |
|
| |
|
| #define ki_src ki_s._kis_src |
|
| #define ki_dst ki_d._kid_dst |
|
| |
|
| #define PCB_SLOP 20 |
|
| #define PCB_ALL 0 |
|
| |
|
| #endif /* _NETBSD_SOURCE */ |
#endif /* _NETBSD_SOURCE */ |
| |
|
| #if defined(_NETBSD_SOURCE) |
#if defined(_NETBSD_SOURCE) |