Deleted Added
full compact
nd6.c (172885) nd6.c (173018)
1/* $FreeBSD: head/sys/netinet6/nd6.c 172885 2007-10-22 19:01:26Z jhb $ */
1/* $FreeBSD: head/sys/netinet6/nd6.c 173018 2007-10-26 13:18:38Z rwatson $ */
2/* $KAME: nd6.c,v 1.144 2001/05/24 07:44:00 itojun Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 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

--- 2099 unchanged lines hidden (view full) ---

2109 sendpkt:
2110 /* discard the packet if IPv6 operation is disabled on the interface */
2111 if ((ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED)) {
2112 error = ENETDOWN; /* better error? */
2113 goto bad;
2114 }
2115
2116#ifdef MAC
2/* $KAME: nd6.c,v 1.144 2001/05/24 07:44:00 itojun Exp $ */
3
4/*-
5 * Copyright (C) 1995, 1996, 1997, and 1998 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

--- 2099 unchanged lines hidden (view full) ---

2109 sendpkt:
2110 /* discard the packet if IPv6 operation is disabled on the interface */
2111 if ((ND_IFINFO(ifp)->flags & ND6_IFF_IFDISABLED)) {
2112 error = ENETDOWN; /* better error? */
2113 goto bad;
2114 }
2115
2116#ifdef MAC
2117 mac_create_mbuf_linklayer(ifp, m);
2117 mac_mbuf_create_linklayer(ifp, m);
2118#endif
2119 if ((ifp->if_flags & IFF_LOOPBACK) != 0) {
2120 return ((*ifp->if_output)(origifp, m, (struct sockaddr *)dst,
2121 rt));
2122 }
2123 return ((*ifp->if_output)(ifp, m, (struct sockaddr *)dst, rt));
2124
2125 bad:

--- 270 unchanged lines hidden ---
2118#endif
2119 if ((ifp->if_flags & IFF_LOOPBACK) != 0) {
2120 return ((*ifp->if_output)(origifp, m, (struct sockaddr *)dst,
2121 rt));
2122 }
2123 return ((*ifp->if_output)(ifp, m, (struct sockaddr *)dst, rt));
2124
2125 bad:

--- 270 unchanged lines hidden ---