Re: IP_ONESBCAST and upcoming RELENG_4_9 freeze

From: Bruce M Simpson (bms_at_spc.org)
Date: 08/22/03

  • Next message: Bruce M Simpson: "Receiving INADDR_BROADCAST packets"
    Date: Fri, 22 Aug 2003 08:08:44 +0100
    To: Wes Peters <wes@softweyr.com>
    
    

    On Thu, Aug 21, 2003 at 10:35:03PM -0700, Wes Peters wrote:
    > Your change makes it so that broadcasts sent to 255.255.255.255 will
    > be transmitted on all interfaces marked with a ONES_BCAST flag, right?

    It really is a very simple addition.

    It's a protocol-level socket option, so doesn't interfere with the legacy
    behaviour unless processes specifically request it, but that's about the gist
    of it. It is an identical API to that documented by Stevens in "UNIX Network
    Programming" and present in BSD/OS from 4.x onwards.

    Ours is slightly more complete in that it will heed the option for a raw
    IP socket without IP_HDRINCL. It is less obfuscated due to our delayed
    checksumming than the BSD/OS code.

    > A nice solution to the problem; I was gonna hack it so such packets
    > were sent on all interfaces with IFF_BROADCAST. I like your solution
    > better. I'm happy to know that will be in 5.2 and I have PR or two
    > to assign over to you so you can close them. ;^)

    No problemo. Will do.

    BMS
    _______________________________________________
    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: Bruce M Simpson: "Receiving INADDR_BROADCAST packets"

    Relevant Pages

    • RE: *at family of syscalls in FreeBSD
      ... EBADF if the path isn't an absolute path AND the fd is invalid, ... I doubt the interfaces will change, ... that will most likely be incompatible with POSIX. ... and an AT_REMOVEDIRAT flag for directories. ...
      (freebsd-arch)
    • Re: how to import two .tlb uses same interface?
      ... Unless you specify no_namespace flag on #import directive, ... interfaces will be in different namespaces. ...
      (microsoft.public.vc.atl)
    • [PATCH 00/18] flag parameters
      ... There is no flag conversion anymore. ... so that new file descriptors can be created with atomically setting the ... Some interfaces are not exported at userlevel with enough flexibility ... or (in case of the socket functions) overload a parameter with a bitset. ...
      (Linux-Kernel)
    • Re: Problems getting custom filter interface to work with application
      ... > displayed video filter output. ... if flag is being constantly ... also suggest you implement your interfaces on the source filter rather than ...
      (microsoft.public.win32.programmer.directx.video)