diff options
Diffstat (limited to 'src/lib/libc/net/rthdr.c')
| -rw-r--r-- | src/lib/libc/net/rthdr.c | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/src/lib/libc/net/rthdr.c b/src/lib/libc/net/rthdr.c index 5cd485889b..7a87b322d1 100644 --- a/src/lib/libc/net/rthdr.c +++ b/src/lib/libc/net/rthdr.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rthdr.c,v 1.2 2000/02/29 18:25:52 itojun Exp $ */ | 1 | /* $OpenBSD: rthdr.c,v 1.3 2002/06/27 10:14:02 itojun Exp $ */ | 
| 2 | 2 | ||
| 3 | /* | 3 | /* | 
| 4 | * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. | 4 | * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. | 
| @@ -100,7 +100,7 @@ inet6_rthdr_add(cmsg, addr, flags) | |||
| 100 | struct ip6_rthdr0 *rt0 = (struct ip6_rthdr0 *)rthdr; | 100 | struct ip6_rthdr0 *rt0 = (struct ip6_rthdr0 *)rthdr; | 
| 101 | if (flags != IPV6_RTHDR_LOOSE && flags != IPV6_RTHDR_STRICT) { | 101 | if (flags != IPV6_RTHDR_LOOSE && flags != IPV6_RTHDR_STRICT) { | 
| 102 | #ifdef DEBUG | 102 | #ifdef DEBUG | 
| 103 | fprintf(stderr, "inet6_rthdr_add: unsupported flag(%d)\n", flags); | 103 | fprintf(stderr, "inet6_rthdr_add: unsupported flag(%u)\n", flags); | 
| 104 | #endif | 104 | #endif | 
| 105 | return(-1); | 105 | return(-1); | 
| 106 | } | 106 | } | 
| @@ -125,7 +125,7 @@ inet6_rthdr_add(cmsg, addr, flags) | |||
| 125 | } | 125 | } | 
| 126 | default: | 126 | default: | 
| 127 | #ifdef DEBUG | 127 | #ifdef DEBUG | 
| 128 | fprintf(stderr, "inet6_rthdr_add: unknown type(%d)\n", | 128 | fprintf(stderr, "inet6_rthdr_add: unknown type(%u)\n", | 
| 129 | rthdr->ip6r_type); | 129 | rthdr->ip6r_type); | 
| 130 | #endif | 130 | #endif | 
| 131 | return(-1); | 131 | return(-1); | 
| @@ -149,7 +149,7 @@ inet6_rthdr_lasthop(cmsg, flags) | |||
| 149 | struct ip6_rthdr0 *rt0 = (struct ip6_rthdr0 *)rthdr; | 149 | struct ip6_rthdr0 *rt0 = (struct ip6_rthdr0 *)rthdr; | 
| 150 | if (flags != IPV6_RTHDR_LOOSE && flags != IPV6_RTHDR_STRICT) { | 150 | if (flags != IPV6_RTHDR_LOOSE && flags != IPV6_RTHDR_STRICT) { | 
| 151 | #ifdef DEBUG | 151 | #ifdef DEBUG | 
| 152 | fprintf(stderr, "inet6_rthdr_lasthop: unsupported flag(%d)\n", flags); | 152 | fprintf(stderr, "inet6_rthdr_lasthop: unsupported flag(%u)\n", flags); | 
| 153 | #endif | 153 | #endif | 
| 154 | return(-1); | 154 | return(-1); | 
| 155 | } | 155 | } | 
| @@ -169,7 +169,7 @@ inet6_rthdr_lasthop(cmsg, flags) | |||
| 169 | } | 169 | } | 
| 170 | default: | 170 | default: | 
| 171 | #ifdef DEBUG | 171 | #ifdef DEBUG | 
| 172 | fprintf(stderr, "inet6_rthdr_lasthop: unknown type(%d)\n", | 172 | fprintf(stderr, "inet6_rthdr_lasthop: unknown type(%u)\n", | 
| 173 | rthdr->ip6r_type); | 173 | rthdr->ip6r_type); | 
| 174 | #endif | 174 | #endif | 
| 175 | return(-1); | 175 | return(-1); | 
| @@ -206,7 +206,7 @@ inet6_rthdr_segments(cmsg) | |||
| 206 | 206 | ||
| 207 | if (rt0->ip6r0_len % 2 || 46 < rt0->ip6r0_len) { | 207 | if (rt0->ip6r0_len % 2 || 46 < rt0->ip6r0_len) { | 
| 208 | #ifdef DEBUG | 208 | #ifdef DEBUG | 
| 209 | fprintf(stderr, "inet6_rthdr_segments: invalid size(%d)\n", | 209 | fprintf(stderr, "inet6_rthdr_segments: invalid size(%u)\n", | 
| 210 | rt0->ip6r0_len); | 210 | rt0->ip6r0_len); | 
| 211 | #endif | 211 | #endif | 
| 212 | return -1; | 212 | return -1; | 
| @@ -217,7 +217,7 @@ inet6_rthdr_segments(cmsg) | |||
| 217 | 217 | ||
| 218 | default: | 218 | default: | 
| 219 | #ifdef DEBUG | 219 | #ifdef DEBUG | 
| 220 | fprintf(stderr, "inet6_rthdr_segments: unknown type(%d)\n", | 220 | fprintf(stderr, "inet6_rthdr_segments: unknown type(%u)\n", | 
| 221 | rthdr->ip6r_type); | 221 | rthdr->ip6r_type); | 
| 222 | #endif | 222 | #endif | 
| 223 | return -1; | 223 | return -1; | 
| @@ -241,7 +241,7 @@ inet6_rthdr_getaddr(cmsg, index) | |||
| 241 | 241 | ||
| 242 | if (rt0->ip6r0_len % 2 || 46 < rt0->ip6r0_len) { | 242 | if (rt0->ip6r0_len % 2 || 46 < rt0->ip6r0_len) { | 
| 243 | #ifdef DEBUG | 243 | #ifdef DEBUG | 
| 244 | fprintf(stderr, "inet6_rthdr_getaddr: invalid size(%d)\n", | 244 | fprintf(stderr, "inet6_rthdr_getaddr: invalid size(%u)\n", | 
| 245 | rt0->ip6r0_len); | 245 | rt0->ip6r0_len); | 
| 246 | #endif | 246 | #endif | 
| 247 | return NULL; | 247 | return NULL; | 
| @@ -258,7 +258,7 @@ inet6_rthdr_getaddr(cmsg, index) | |||
| 258 | 258 | ||
| 259 | default: | 259 | default: | 
| 260 | #ifdef DEBUG | 260 | #ifdef DEBUG | 
| 261 | fprintf(stderr, "inet6_rthdr_getaddr: unknown type(%d)\n", | 261 | fprintf(stderr, "inet6_rthdr_getaddr: unknown type(%u)\n", | 
| 262 | rthdr->ip6r_type); | 262 | rthdr->ip6r_type); | 
| 263 | #endif | 263 | #endif | 
| 264 | return NULL; | 264 | return NULL; | 
| @@ -282,7 +282,7 @@ inet6_rthdr_getflags(cmsg, index) | |||
| 282 | 282 | ||
| 283 | if (rt0->ip6r0_len % 2 || 46 < rt0->ip6r0_len) { | 283 | if (rt0->ip6r0_len % 2 || 46 < rt0->ip6r0_len) { | 
| 284 | #ifdef DEBUG | 284 | #ifdef DEBUG | 
| 285 | fprintf(stderr, "inet6_rthdr_getflags: invalid size(%d)\n", | 285 | fprintf(stderr, "inet6_rthdr_getflags: invalid size(%u)\n", | 
| 286 | rt0->ip6r0_len); | 286 | rt0->ip6r0_len); | 
| 287 | #endif | 287 | #endif | 
| 288 | return -1; | 288 | return -1; | 
| @@ -302,7 +302,7 @@ inet6_rthdr_getflags(cmsg, index) | |||
| 302 | 302 | ||
| 303 | default: | 303 | default: | 
| 304 | #ifdef DEBUG | 304 | #ifdef DEBUG | 
| 305 | fprintf(stderr, "inet6_rthdr_getflags: unknown type(%d)\n", | 305 | fprintf(stderr, "inet6_rthdr_getflags: unknown type(%u)\n", | 
| 306 | rthdr->ip6r_type); | 306 | rthdr->ip6r_type); | 
| 307 | #endif | 307 | #endif | 
| 308 | return -1; | 308 | return -1; | 
