1/* $FreeBSD: head/sys/net/if_stf.c 105194 2002-10-16 01:54:46Z sam $ */
2/* $KAME: if_stf.c,v 1.73 2001/12/03 11:08:30 keiichi 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
--- 456 unchanged lines hidden (view full) ---
466 if (sc->sc_ro.ro_rt == NULL) {
467 m_freem(m);
468 ifp->if_oerrors++;
469 return ENETUNREACH;
470 }
471 }
472
473 ifp->if_opackets++;
474 return ip_output(m, NULL, &sc->sc_ro, 0, NULL, NULL);
475}
476
477static int
478isrfc1918addr(in)
479 struct in_addr *in;
480{
481 /*
482 * returns 1 if private address range:
--- 268 unchanged lines hidden ---
2/* $KAME: if_stf.c,v 1.73 2001/12/03 11:08:30 keiichi 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
--- 456 unchanged lines hidden (view full) ---
466 if (sc->sc_ro.ro_rt == NULL) {
467 m_freem(m);
468 ifp->if_oerrors++;
469 return ENETUNREACH;
470 }
471 }
472
473 ifp->if_opackets++;
474 return ip_output(m, NULL, &sc->sc_ro, 0, NULL, NULL);
475}
476
477static int
478isrfc1918addr(in)
479 struct in_addr *in;
480{
481 /*
482 * returns 1 if private address range:
--- 268 unchanged lines hidden ---