add a few informative printfs to if_bridge.c?

From: Niki Denev (nike_d_at_cytexbg.com)
Date: 07/12/05

  • Next message: Mark Santcroos: "Re: Suspend broken ?"
    To: freebsd-current@freebsd.org
    Date: Tue, 12 Jul 2005 10:26:16 +0300
    
    

    Hello all,

    I've had some problems adding one if_ral interface to if_bridge device.
    I've tracked down the problem to the MTU on my PCI if_ral interface
    which is set to 2290 ( i think that hostapd did this ).

    So, i have a proposition to add some informative printfs to if_bridge code,
    because returning "Invalid argument" is not so self explanatory, especially
    in the wrong MTU case. I think that most of the returns in bridge_ioctl_add(),
    could benefit from additional printf with more information.
    What do you think?

    --niki
    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: Mark Santcroos: "Re: Suspend broken ?"

    Relevant Pages

    • Re: FRS Only replicates on inbound connection, no changes go out.
      ... Mike Drechsler - SPAM PROTECTED EMAIL ... protocol can go higher than this on a physical interface that supports larger packet sizes such as gigabit ethernet. ... Ethernet has just become so common that you might assume that 1500 is somehow tied to basic TCP/IP specifications. ... LDAP will work just fine with MTU values lower than 1500 unless you are thinking about the problem experienced with Windows 2003 sp1 or the MS05-019 patch resolved in a hotfix referred to in KB article 898060? ...
      (microsoft.public.windows.server.active_directory)
    • Re: Panic in 6.2-PRERELEASE with bge on amd64
      ... interface is enough to completely panic the driver and then the kernel, ... I added some sysctls and found it annoying to have to do down/up ... Similarly for the mtu ioctl. ... As this was connected to a gigE switch with mtu left at 1500 I supposed ...
      (freebsd-stable)
    • Re: 6.2 mtu now limits size of incomming packet
      ... Incoming interface must have mtu set to the same mtu as all other hosts on the same L2 network. ... Thus the router can accept the incoming packet but may drop and notify on a frame that is too large to exit the outgoing interface. ...
      (freebsd-net)
    • Re: Problem with large pings with dont fragment set
      ... > pings with the DF bit set over a GRE tunnel. ... I don't know about GRE tunnels but they very likely add ... > the MTU on the tunnel interface is 552. ...
      (comp.os.linux.networking)
    • Re: Dropped packets via ISR
      ... I also used ping plotter... ... Tried changing from full duplex to half duplex to auto and that did ... "1) Interface MTU at 1500 is fine. ...
      (comp.dcom.sys.cisco)