Re: IPFW2 versrcreach update

From: Gleb Smirnoff (glebius_at_freebsd.org)
Date: 07/20/04

  • Next message: Andre Oppermann: "Re: IPFW2 versrcreach update"
    Date: Tue, 20 Jul 2004 11:17:59 +0400
    To: James <haesu@towardex.com>
    
    

    On Mon, Jul 19, 2004 at 10:12:38PM -0400, James wrote:
    J> /* if no ifp provided, check if rtentry is not default route */
    J> if (ifp == NULL &&
    J> satosin(rt_key(ro.ro_rt))->sin_addr.s_addr == INADDR_ANY) {
    J> RTFREE(ro.ro_rt);
    J> return 0;
    J> }
    J>
    J> + /* by this point a route is found. check if this is pointed
    J> + * to blackhole/reject */
    J> + if (ifp == NULL && ro.ro_rt->rt_flags & (RTF_REJECT|RTF_BLACKHOLE) ) {
    J> + RTFREE(ro.ro_rt);
    J> + return 0;
    J> + }
    J>
    J>
    J> Haven't tested this yet, but will do tomorrow after I finish some other stuff
    J> I need done before rebooting w/ a test kernel.
    J> Anyway the idea is to fail the check if the route has RTF_REJECT or
    J> RTF_BLACKHOLE flag, under loose-check (ifp set to NULL) operation, which is
    J> an easy straight forward change.

    Seems reasonable from my viewpoint.

    P.S. GNU zebra null-routes into lo0, always setting RTF_BLACKHOLE flag. What
    software uses RTF_REJECT flag?

    -- 
    Totus tuus, Glebius.
    GLEBIUS-RIPN GLEB-RIPE
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
    

  • Next message: Andre Oppermann: "Re: IPFW2 versrcreach update"

    Relevant Pages

    • Re: saving routing table question
      ... It was obviously made so somebody didn't have to waste time writing route ... It may stay for years or it may be replaced in Solaris 11. ... Sometimes you need a static route, and that -p flag in newer solaris 10s ... Anything beats scripts to add routes, which is primitive and a time ...
      (comp.sys.sun.admin)
    • RE: Removing unnecessary data
      ... Route No ... I tried to attach a flag depending on the distance to the bus from the ... Point Blies between 5775-5830 ...
      (perl.beginners)
    • Re: IPFW2 versrcreach update
      ... A>> RTF_BLACKHOLE flag, under loose-check (ifp set to NULL) operation, which is ... A> How do you set the RTF_REJECT or RTF_BLACKHOLE flags on a route with Zebra/ ...
      (freebsd-net)
    • Re: dhclient sucks
      ... > That just means you have to hardcode your resolver and default route into ... > the DHCP server tells you to" flag in the config file I believe. ...
      (freebsd-current)
    • Re: making a simple tour from viewpoints
      ... > with a slow transition from a viewpoint to the next? ... > all i want is open the vrml file and without user intervent see the ... DEF ProxSensor ProximitySensor { ... ROUTE ProxSensor.isActive TO StartTour.enabled ...
      (comp.lang.vrml)