if_stf.c (163606) | if_stf.c (172307) |
---|---|
1/* $FreeBSD: head/sys/net/if_stf.c 163606 2006-10-22 11:52:19Z rwatson $ */ | 1/* $FreeBSD: head/sys/net/if_stf.c 172307 2007-09-23 17:50:17Z csjp $ */ |
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 --- 592 unchanged lines hidden (view full) --- 602 rt = rtalloc1((struct sockaddr *)&sin, 0, 0UL); 603 if (!rt || rt->rt_ifp != inifp) { 604#if 0 605 log(LOG_WARNING, "%s: packet from 0x%x dropped " 606 "due to ingress filter\n", if_name(STF2IFP(sc)), 607 (u_int32_t)ntohl(sin.sin_addr.s_addr)); 608#endif 609 if (rt) | 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 --- 592 unchanged lines hidden (view full) --- 602 rt = rtalloc1((struct sockaddr *)&sin, 0, 0UL); 603 if (!rt || rt->rt_ifp != inifp) { 604#if 0 605 log(LOG_WARNING, "%s: packet from 0x%x dropped " 606 "due to ingress filter\n", if_name(STF2IFP(sc)), 607 (u_int32_t)ntohl(sin.sin_addr.s_addr)); 608#endif 609 if (rt) |
610 rtfree(rt); | 610 RTFREE_LOCKED(rt); |
611 return -1; 612 } | 611 return -1; 612 } |
613 rtfree(rt); | 613 RTFREE_LOCKED(rt); |
614 } 615 616 return 0; 617} 618 619static int 620stf_checkaddr6(sc, in6, inifp) 621 struct stf_softc *sc; --- 183 unchanged lines hidden --- | 614 } 615 616 return 0; 617} 618 619static int 620stf_checkaddr6(sc, in6, inifp) 621 struct stf_softc *sc; --- 183 unchanged lines hidden --- |