scope6.c (148396) | scope6.c (148399) |
---|---|
1/* $FreeBSD: head/sys/netinet6/scope6.c 148396 2005-07-25 17:05:37Z ume $ */ | 1/* $FreeBSD: head/sys/netinet6/scope6.c 148399 2005-07-25 17:28:39Z ume $ */ |
2/* $KAME: scope6.c,v 1.10 2000/07/24 13:29:31 itojun Exp $ */ 3 4/*- 5 * Copyright (C) 2000 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 413 unchanged lines hidden (view full) --- 423 } 424#endif 425 426 /* 427 * special case: the loopback address can only belong to a loopback 428 * interface. 429 */ 430 if (IN6_IS_ADDR_LOOPBACK(in6)) { | 2/* $KAME: scope6.c,v 1.10 2000/07/24 13:29:31 itojun Exp $ */ 3 4/*- 5 * Copyright (C) 2000 WIDE Project. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 413 unchanged lines hidden (view full) --- 423 } 424#endif 425 426 /* 427 * special case: the loopback address can only belong to a loopback 428 * interface. 429 */ 430 if (IN6_IS_ADDR_LOOPBACK(in6)) { |
431 if (!(ifp->if_flags & IFF_LOOPBACK)) | 431 if (!(ifp->if_flags & IFF_LOOPBACK)) { |
432 IF_AFDATA_UNLOCK(ifp); 433 return (EINVAL); | 432 IF_AFDATA_UNLOCK(ifp); 433 return (EINVAL); |
434 else { | 434 } else { |
435 if (ret_id != NULL) 436 *ret_id = 0; /* there's no ambiguity */ 437 IF_AFDATA_UNLOCK(ifp); 438 return (0); 439 } 440 } 441 442 scope = in6_addrscope(in6); --- 53 unchanged lines hidden --- | 435 if (ret_id != NULL) 436 *ret_id = 0; /* there's no ambiguity */ 437 IF_AFDATA_UNLOCK(ifp); 438 return (0); 439 } 440 } 441 442 scope = in6_addrscope(in6); --- 53 unchanged lines hidden --- |