Skip to content

Commit

Permalink
tabify
Browse files Browse the repository at this point in the history
  • Loading branch information
itojun committed Apr 23, 2003
1 parent 36a8c23 commit a74e720
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 82 deletions.
10 changes: 5 additions & 5 deletions kame/sys/netinet/icmp6.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: icmp6.h,v 1.83 2003/03/04 18:57:32 t-momose Exp $ */
/* $KAME: icmp6.h,v 1.84 2003/04/23 10:26:51 itojun Exp $ */

/*
* Copyright (c) 2002 INRIA. All rights reserved.
Expand Down Expand Up @@ -677,11 +677,11 @@ struct rr_pco_use { /* use prefix part */
#define ICMP6_RR_PCOUSE_RAFLAGS_AUTO 0x40

#if BYTE_ORDER == BIG_ENDIAN
#define ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME 0x80000000
#define ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME 0x40000000
#define ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME 0x80000000
#define ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME 0x40000000
#elif BYTE_ORDER == LITTLE_ENDIAN
#define ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME 0x80
#define ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME 0x40
#define ICMP6_RR_PCOUSE_FLAGS_DECRVLTIME 0x80
#define ICMP6_RR_PCOUSE_FLAGS_DECRPLTIME 0x40
#endif

struct rr_result { /* router renumbering result message */
Expand Down
44 changes: 22 additions & 22 deletions kame/sys/netinet/sctp.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: sctp.h,v 1.10 2003/03/10 05:58:12 itojun Exp $ */
/* $KAME: sctp.h,v 1.11 2003/04/23 10:26:51 itojun Exp $ */
/* Header: /home/sctpBsd/netinet/sctp.h,v 1.43 2002/04/02 15:34:44 lei Exp */


Expand Down Expand Up @@ -112,30 +112,30 @@ struct sctp_paramhdr {
/* Blocking I/O is controled by the SS_NBIO flag on the
* socket state so_state field.
*/
#define SCTP_GET_SNDBUF_USE 0x00008000
#define SCTP_GET_SNDBUF_USE 0x00008000
/* latter added read/write */
#define SCTP_SET_ADAPTION_LAYER_BITS 0x00010000
#define SCTP_DISABLE_FRAGMENTS 0x00020000
#define SCTP_SET_ADAPTION_LAYER_BITS 0x00010000
#define SCTP_DISABLE_FRAGMENTS 0x00020000
/* sctp_bindx() flags as socket options */
#define SCTP_BINDX_ADD_ADDR 0x00040000
#define SCTP_BINDX_REM_ADDR 0x00080000
#define SCTP_BINDX_ADD_ADDR 0x00040000
#define SCTP_BINDX_REM_ADDR 0x00080000
/* return the total count in bytes needed to hold all local addresses bound */
#define SCTP_GET_LOCAL_ADDR_SIZE 0x00100000
#define SCTP_GET_LOCAL_ADDR_SIZE 0x00100000
/* Without this applied we will give V4 and V6 addresses on a V6 socket */
#define SCTP_I_WANT_MAPPED_V4_ADDR 0x00200000
#define SCTP_I_WANT_MAPPED_V4_ADDR 0x00200000
/* Return the total count in bytes needed to hold the remote address */
#define SCTP_GET_REMOTE_ADDR_SIZE 0x00400000
#define SCTP_GET_PEGS 0x00800000
#define SCTP_DEFAULT_SEND_PARAM 0x01000000
#define SCTP_SET_DEBUG_LEVEL 0x02000000
#define SCTP_RTOINFO 0x04000000
#define SCTP_AUTO_ASCONF 0x08000000
#define SCTP_MAXBURST 0x10000000
#define SCTP_GET_CWND_LOG 0x20000000
#define SCTP_GET_REMOTE_ADDR_SIZE 0x00400000
#define SCTP_GET_PEGS 0x00800000
#define SCTP_DEFAULT_SEND_PARAM 0x01000000
#define SCTP_SET_DEBUG_LEVEL 0x02000000
#define SCTP_RTOINFO 0x04000000
#define SCTP_AUTO_ASCONF 0x08000000
#define SCTP_MAXBURST 0x10000000
#define SCTP_GET_CWND_LOG 0x20000000
/* Test/debug get a route */

/* Debug things that need to be purged */
#define SCTP_SET_INITIAL_DBG_SEQ 0x80000000
#define SCTP_SET_INITIAL_DBG_SEQ 0x80000000

/*
* user state values
Expand All @@ -158,12 +158,12 @@ struct sctp_paramhdr {
#define SCTP_ERROR_INVALID_STREAM 0x0001
#define SCTP_ERROR_MISSING_PARAM 0x0002
#define SCTP_ERROR_STALE_COOKIE 0x0003
#define SCTP_ERROR_OUT_OF_RESOURCES 0x0004
#define SCTP_ERROR_UNRESOLVABLE_ADDR 0x0005
#define SCTP_ERROR_UNRECOG_CHUNK 0x0006
#define SCTP_ERROR_OUT_OF_RESOURCES 0x0004
#define SCTP_ERROR_UNRESOLVABLE_ADDR 0x0005
#define SCTP_ERROR_UNRECOG_CHUNK 0x0006
#define SCTP_ERROR_INVALID_PARAM 0x0007
#define SCTP_ERROR_UNRECOG_PARAM 0x0008
#define SCTP_ERROR_NO_USER_DATA 0x0009
#define SCTP_ERROR_UNRECOG_PARAM 0x0008
#define SCTP_ERROR_NO_USER_DATA 0x0009
#define SCTP_ERROR_COOKIE_IN_SHUTDOWN 0x000a
/* draft-ietf-tsvwg-sctpimpguide */
#define SCTP_ERROR_RESTART_NEWADDRS 0x000b
Expand Down
4 changes: 2 additions & 2 deletions kame/sys/netinet/sctp_callout.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: sctp_callout.h,v 1.2 2002/05/20 05:50:02 itojun Exp $ */
/* $KAME: sctp_callout.h,v 1.3 2003/04/23 10:26:51 itojun Exp $ */
/* Header: /home/sctpBsd/netinet/sctp_callout.h,v 1.3 2002/04/04 16:35:21 randall Exp */

#ifndef __SCTP_CALLOUT__
Expand Down Expand Up @@ -36,7 +36,7 @@
#define _SCTP_NEEDS_CALLOUT_ 1

struct callout {
TAILQ_ENTRY(callout) tqe;
TAILQ_ENTRY(callout) tqe;
int c_time; /* ticks to the event */
void *c_arg; /* function argument */
void (*c_func) __P((void *)); /* function to call */
Expand Down
70 changes: 35 additions & 35 deletions kame/sys/netinet/sctp_constants.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: sctp_constants.h,v 1.8 2003/04/21 06:26:10 itojun Exp $ */
/* $KAME: sctp_constants.h,v 1.9 2003/04/23 10:26:51 itojun Exp $ */
/* Header: /home/sctpBsd/netinet/sctp_constants.h,v 1.61 2002/04/04 16:53:46 randall Exp */

#ifndef __sctp_constants_h__
Expand Down Expand Up @@ -120,8 +120,8 @@
#define SCTP_DEF_MAX_BURST 4

/* Packet transmit states in the sent field */
#define SCTP_DATAGRAM_UNSENT 0
#define SCTP_DATAGRAM_SENT 1
#define SCTP_DATAGRAM_UNSENT 0
#define SCTP_DATAGRAM_SENT 1
#define SCTP_DATAGRAM_RESEND1 2 /* not used (in code, but may hit this value) */
#define SCTP_DATAGRAM_RESEND2 3 /* not used (in code, but may hit this value) */
#define SCTP_DATAGRAM_RESEND3 4 /* not used (in code, but may hit this value) */
Expand Down Expand Up @@ -250,7 +250,7 @@
#define SCTP_NO_HEARTBEAT 0x40

/* mask to get sticky */
#define SCTP_STICKY_OPTIONS_MASK 0x0c
#define SCTP_STICKY_OPTIONS_MASK 0x0c

/* MTU discovery flags */
#define SCTP_DONT_FRAGMENT 0x0100
Expand Down Expand Up @@ -293,7 +293,7 @@

#define SCTP_ACTIVE SCTP_ADDR_REACHABLE
#define SCTP_INACTIVE SCTP_ADDR_NOT_REACHABLE
#define SCTP_REACHABLE_MASK 0x203
#define SCTP_REACHABLE_MASK 0x203

/* bound address types (e.g. valid address types to allow) */
#define SCTP_BOUND_V6 0x01
Expand Down Expand Up @@ -456,36 +456,36 @@


/* SCTP DEBUG Switch parameters */
#define SCTP_DEBUG_TIMER1 0x00000001
#define SCTP_DEBUG_TIMER2 0x00000002
#define SCTP_DEBUG_TIMER3 0x00000004
#define SCTP_DEBUG_TIMER4 0x00000008
#define SCTP_DEBUG_OUTPUT1 0x00000010
#define SCTP_DEBUG_OUTPUT2 0x00000020
#define SCTP_DEBUG_OUTPUT3 0x00000040
#define SCTP_DEBUG_OUTPUT4 0x00000080
#define SCTP_DEBUG_UTIL1 0x00000100
#define SCTP_DEBUG_UTIL2 0x00000200
#define SCTP_DEBUG_INPUT1 0x00001000
#define SCTP_DEBUG_INPUT2 0x00002000
#define SCTP_DEBUG_INPUT3 0x00004000
#define SCTP_DEBUG_INPUT4 0x00008000
#define SCTP_DEBUG_ASCONF1 0x00010000
#define SCTP_DEBUG_ASCONF2 0x00020000
#define SCTP_DEBUG_OUTPUT5 0x00040000
#define SCTP_DEBUG_PCB1 0x00100000
#define SCTP_DEBUG_PCB2 0x00200000
#define SCTP_DEBUG_PCB3 0x00400000
#define SCTP_DEBUG_PCB4 0x00800000
#define SCTP_DEBUG_INDATA1 0x01000000
#define SCTP_DEBUG_INDATA2 0x02000000
#define SCTP_DEBUG_INDATA3 0x04000000
#define SCTP_DEBUG_INDATA4 0x08000000
#define SCTP_DEBUG_USRREQ1 0x10000000
#define SCTP_DEBUG_USRREQ2 0x20000000
#define SCTP_DEBUG_PEEL1 0x40000000
#define SCTP_DEBUG_ALL 0x7ff3f3ff
#define SCTP_DEBUG_NOISY 0x00040000
#define SCTP_DEBUG_TIMER1 0x00000001
#define SCTP_DEBUG_TIMER2 0x00000002
#define SCTP_DEBUG_TIMER3 0x00000004
#define SCTP_DEBUG_TIMER4 0x00000008
#define SCTP_DEBUG_OUTPUT1 0x00000010
#define SCTP_DEBUG_OUTPUT2 0x00000020
#define SCTP_DEBUG_OUTPUT3 0x00000040
#define SCTP_DEBUG_OUTPUT4 0x00000080
#define SCTP_DEBUG_UTIL1 0x00000100
#define SCTP_DEBUG_UTIL2 0x00000200
#define SCTP_DEBUG_INPUT1 0x00001000
#define SCTP_DEBUG_INPUT2 0x00002000
#define SCTP_DEBUG_INPUT3 0x00004000
#define SCTP_DEBUG_INPUT4 0x00008000
#define SCTP_DEBUG_ASCONF1 0x00010000
#define SCTP_DEBUG_ASCONF2 0x00020000
#define SCTP_DEBUG_OUTPUT5 0x00040000
#define SCTP_DEBUG_PCB1 0x00100000
#define SCTP_DEBUG_PCB2 0x00200000
#define SCTP_DEBUG_PCB3 0x00400000
#define SCTP_DEBUG_PCB4 0x00800000
#define SCTP_DEBUG_INDATA1 0x01000000
#define SCTP_DEBUG_INDATA2 0x02000000
#define SCTP_DEBUG_INDATA3 0x04000000
#define SCTP_DEBUG_INDATA4 0x08000000
#define SCTP_DEBUG_USRREQ1 0x10000000
#define SCTP_DEBUG_USRREQ2 0x20000000
#define SCTP_DEBUG_PEEL1 0x40000000
#define SCTP_DEBUG_ALL 0x7ff3f3ff
#define SCTP_DEBUG_NOISY 0x00040000

/* What sender needs to see to avoid SWS or we consider peers rwnd 0 */
#define SCTP_SWS_SENDER_DEF 1420
Expand Down
4 changes: 2 additions & 2 deletions kame/sys/netinet/sctp_header.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: sctp_header.h,v 1.6 2003/03/10 05:58:12 itojun Exp $ */
/* $KAME: sctp_header.h,v 1.7 2003/04/23 10:26:51 itojun Exp $ */
/* Header: /home/sctpBsd/netinet/sctp_header.h,v 1.34 2002/04/03 21:10:19 lei Exp */

#ifndef __sctp_header_h__
Expand Down Expand Up @@ -418,7 +418,7 @@ struct sctp_packet_drop {

#define SCTP_MED_V4_OVERHEAD (sizeof(struct sctp_data_chunk) + \
sizeof(struct sctphdr) + \
sizeof(struct ip))
sizeof(struct ip))

#define SCTP_MIN_V4_OVERHEAD (sizeof(struct ip) + \
sizeof(struct sctphdr))
Expand Down
14 changes: 7 additions & 7 deletions kame/sys/netinet/sctp_pcb.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: sctp_pcb.h,v 1.9 2003/04/21 06:26:11 itojun Exp $ */
/* $KAME: sctp_pcb.h,v 1.10 2003/04/23 10:26:51 itojun Exp $ */
/* Header: /home/sctpBsd/netinet/sctp_pcb.h,v 1.92 2002/04/04 16:53:46 randall Exp */

#ifndef __sctp_pcb_h__
Expand Down Expand Up @@ -91,8 +91,8 @@ LIST_HEAD(sctpvtaghead, sctp_tagblock);
#define SCTP_PCB_FLAGS_RECVPEERERR 0x00002000
#define SCTP_PCB_FLAGS_RECVSENDFAILEVNT 0x00004000
#define SCTP_PCB_FLAGS_RECVSHUTDOWNEVNT 0x00008000
#define SCTP_PCB_FLAGS_ADAPTIONEVNT 0x00010000
#define SCTP_PCB_FLAGS_PDAPIEVNT 0x00020000
#define SCTP_PCB_FLAGS_ADAPTIONEVNT 0x00010000
#define SCTP_PCB_FLAGS_PDAPIEVNT 0x00020000
#define SCTP_PCB_FLAGS_NO_FRAGMENT 0x00040000
/* TCP model support */
#define SCTP_PCB_FLAGS_CONNECTED 0x00080000
Expand All @@ -102,12 +102,12 @@ LIST_HEAD(sctpvtaghead, sctp_tagblock);
#define SCTP_PCB_FLAGS_WAKEINPUT 0x00800000
#define SCTP_PCB_FLAGS_BOUND_V6 0x01000000
#define SCTP_PCB_FLAGS_NEEDS_MAPPED_V4 0x02000000
#define SCTP_PCB_FLAGS_BLOCKING_IO 0x04000000
#define SCTP_PCB_FLAGS_BLOCKING_IO 0x04000000
#define SCTP_PCB_FLAGS_SOCKET_GONE 0x08000000
#define SCTP_PCB_FLAGS_SOCKET_ALLGONE 0x10000000

/* flags to copy to new PCB */
#define SCTP_PCB_COPY_FLAGS 0x0707ff64
#define SCTP_PCB_COPY_FLAGS 0x0707ff64

#define SCTP_PCBHASH_ALLADDR(port, mask) (port & mask)

Expand Down Expand Up @@ -314,10 +314,10 @@ struct sctp_inpcb {
#endif
#ifndef __FreeBSD__
#ifndef INP_IPV6
#define INP_IPV6 0x1
#define INP_IPV6 0x1
#endif
#ifndef INP_IPV4
#define INP_IPV4 0x2
#define INP_IPV4 0x2
#endif
u_char inp_vflag;
u_char inp_ip_ttl;
Expand Down
18 changes: 9 additions & 9 deletions kame/sys/netinet/sctp_uio.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: sctp_uio.h,v 1.5 2003/04/21 06:26:11 itojun Exp $ */
/* $KAME: sctp_uio.h,v 1.6 2003/04/23 10:26:51 itojun Exp $ */
/* Header: /home/sctpBsd/netinet/sctp_uio.h,v 1.40 2002/04/04 16:34:41 lei Exp */

#ifndef __sctp_uio_h__
Expand Down Expand Up @@ -197,17 +197,17 @@ struct sctp_rcv_pdapi_event {
};

/* pdapi indications */
#define SCTP_PARTIAL_DELIVERY_ABORTED 0x0001
#define SCTP_PARTIAL_DELIVERY_ABORTED 0x0001


/* notification types */
#define SCTP_ASSOC_CHANGE 0x0001
#define SCTP_PEER_ADDR_CHANGE 0x0002
#define SCTP_REMOTE_ERROR 0x0003
#define SCTP_SEND_FAILED 0x0004
#define SCTP_SHUTDOWN_EVENT 0x0005
#define SCTP_ADAPTION_INDICATION 0x0006
#define SCTP_PARTIAL_DELIVERY_EVENT 0x0007
#define SCTP_ASSOC_CHANGE 0x0001
#define SCTP_PEER_ADDR_CHANGE 0x0002
#define SCTP_REMOTE_ERROR 0x0003
#define SCTP_SEND_FAILED 0x0004
#define SCTP_SHUTDOWN_EVENT 0x0005
#define SCTP_ADAPTION_INDICATION 0x0006
#define SCTP_PARTIAL_DELIVERY_EVENT 0x0007

struct sctp_tlv {
u_int16_t sn_type;
Expand Down

0 comments on commit a74e720

Please sign in to comment.