Re: Receiving INADDR_BROADCAST packets

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

  • Next message: Ruslan Ermilov: "Re: [IPsec] ipcomp in tunnel mode still broken?"
    Date: Fri, 22 Aug 2003 19:30:18 +0100
    To: Bill Fenner <fenner@research.att.com>
    
    

    On Fri, Aug 22, 2003 at 06:18:57AM -0700, Bill Fenner wrote:
    > I think c) (perhaps combined with IP_RECVDSTADDR so that you know
    > whether you got a unicast or broadcast) is the correct answer.
    > I think binding UDP sockets to tell what interface/address was
    > the destination is a historical artifact.

    I've implemented the fix you've suggested. Thanks!

    I probably wouldn't need to bind sockets to each interface if I were doing
    purely broadcast traffic. I'm happy with what works for the time being,
    however; I may revisit this if I ever implement IPv6 support for the daemon
    I'm currently hacking. IP_ONESBCAST has saved a lot of trouble for me.

    Regards,
    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: Ruslan Ermilov: "Re: [IPsec] ipcomp in tunnel mode still broken?"

    Relevant Pages

    • Re: Receiving INADDR_BROADCAST packets
      ... whether you got a unicast or broadcast) is the correct answer. ... I think binding UDP sockets to tell what interface/address was ... To unsubscribe, ...
      (freebsd-net)
    • Re: Message sender and receiver for unicast+multicast+Broadcast
      ... > unicast, multicast, Broadcast and get the ACK for every message sent. ...
      (comp.unix.programmer)
    • Re: Broadcast Udp Paket mit falscher Source IP
      ... Sender melden (per Unicast). ... der falschen Source IP ausrichten und somit ihr Paket nicht ... Es wird ja weiterhin ein Broadcast gesendet - aber eben einer der zum ...
      (microsoft.public.de.german.entwickler.dotnet.csharp)
    • Sendto :: Broad cast address and unicast addr
      ... The application has to send unicast packets to unicast address and ... broadcast packets to broadcast addresses. ... What will happen if i set Socket Option SO_BROADCAST and send a ...
      (microsoft.public.win32.programmer.networks)
    • Re: Broadcast packets not blocked by filter ?!?
      ... So I would have to add a special rule to block unicast in both ways... ... Broadcast packets banned for ip X ... The broadcast packets were still showing up in the wireshark sniffer... ...
      (microsoft.public.windowsxp.general)