Deleted Added
full compact
if_iso88025subr.c (178888) if_iso88025subr.c (183013)
1/*-
2 * Copyright (c) 1998, Larry Lile
3 * All rights reserved.
4 *
5 * For latest sources and information on this driver, please
6 * go to http://anarchy.stdio.com.
7 *
8 * Questions, comments or suggestions should be directed to

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
1/*-
2 * Copyright (c) 1998, Larry Lile
3 * All rights reserved.
4 *
5 * For latest sources and information on this driver, please
6 * go to http://anarchy.stdio.com.
7 *
8 * Questions, comments or suggestions should be directed to

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

25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * $FreeBSD: head/sys/net/if_iso88025subr.c 178888 2008-05-09 23:03:00Z julian $
33 * $FreeBSD: head/sys/net/if_iso88025subr.c 183013 2008-09-14 08:19:48Z julian $
34 *
35 */
36
37/*
38 *
39 * General ISO 802.5 (Token Ring) support routines
40 *
41 */

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

254 if (!((ifp->if_flags & IFF_UP) &&
255 (ifp->if_drv_flags & IFF_DRV_RUNNING)))
256 senderr(ENETDOWN);
257 getmicrotime(&ifp->if_lastchange);
258
259 /* Calculate routing info length based on arp table entry */
260 /* XXX any better way to do this ? */
261 if (rt0 != NULL) {
34 *
35 */
36
37/*
38 *
39 * General ISO 802.5 (Token Ring) support routines
40 *
41 */

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

254 if (!((ifp->if_flags & IFF_UP) &&
255 (ifp->if_drv_flags & IFF_DRV_RUNNING)))
256 senderr(ENETDOWN);
257 getmicrotime(&ifp->if_lastchange);
258
259 /* Calculate routing info length based on arp table entry */
260 /* XXX any better way to do this ? */
261 if (rt0 != NULL) {
262/* XXX MRT *//* Guess only */
263 error = rt_check_fib(&rt, &rt0, dst, rt0->rt_fibnum);
262 error = rt_check(&rt, &rt0, dst);
264 if (error)
265 goto bad;
266 RT_UNLOCK(rt);
267 }
268
269 if (rt && (sdl = (struct sockaddr_dl *)rt->rt_gateway))
270 if (SDL_ISO88025(sdl)->trld_rcf != 0)
271 rif_len = TR_RCF_RIFLEN(SDL_ISO88025(sdl)->trld_rcf);

--- 555 unchanged lines hidden ---
263 if (error)
264 goto bad;
265 RT_UNLOCK(rt);
266 }
267
268 if (rt && (sdl = (struct sockaddr_dl *)rt->rt_gateway))
269 if (SDL_ISO88025(sdl)->trld_rcf != 0)
270 rif_len = TR_RCF_RIFLEN(SDL_ISO88025(sdl)->trld_rcf);

--- 555 unchanged lines hidden ---