Re: usb/149039: [uhso] Binding problem with uhso

2010-08-01 Thread Fredrik Lindberg
On 08/01/2010 04:37 AM, per...@pluto.rain.com wrote: The following reply was made to PR usb/149039; it has been noted by GNATS. From: Fredrik Lindberg To: bug-follo...@freebsd.org, pilzablei...@web.de Cc: Hans Petter Selasky Subject: Re: usb/149039: [uhso] Binding problem with uhso Date: Sat

Re: Unexpected multicast IPv4 socket behavior

2008-01-12 Thread Fredrik Lindberg
Bruce M. Simpson wrote: I find the following socket behavior a bit unexpected. Multicast from an IPv4 socket (with IP_MULTICAST_IF set) with its source address bound to INADDR_ANY only works if there is a default route defined, otherwise send() returns ENETUNREACH. Default route set, src INADDR

Unexpected multicast IPv4 socket behavior

2008-01-12 Thread Fredrik Lindberg
hed a test case and a patch to illustrate it, comments? Fredrik Lindberg [1] http://fxr.watson.org/fxr/source/netinet/in_pcb.c#L610 Index: netinet/in_pcb.c === RCS file: /home/ncvs/src/sys/netinet/in_pcb.c,v retrieving revision 1.198

Re: em_ioctl and SIOCGIFADDR

2007-05-24 Thread Fredrik Lindberg
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern%2F112937 ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"

em_ioctl and SIOCGIFADDR

2007-05-12 Thread Fredrik Lindberg
as an argument, so one should dereference a struct ifreq in em_ioctl and not a struct ifaddr. At least this takes care of the panic. Fredrik Lindberg Index: if_em.c === RCS file: /home/ncvs/src/sys/dev/em/if_em.c,v retrieving revision

Re: Zeroconfig and Multicast DNS

2006-08-26 Thread Fredrik Lindberg
ive to malicious behavior as it handles gethostbyname etc). Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Zeroconfig and Multicast DNS

2006-08-26 Thread Fredrik Lindberg
resolved. A Service Discovery browser application that utilize the mDNS API directly would of course be allowed to do any type of query. But queries going through the more generalized NSS environment should be restricted by default. Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Zeroconfig and Multicast DNS

2006-08-26 Thread Fredrik Lindberg
tisements to be published for both .local and the host domain. Any thing more complex would require editing mdns.conf. Publishing announcements is one thing, what the nss mdns module allows a host to resolve is what will limit its initial usage. Fredrik Lindberg _

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
rently supporting IPv4?' or 'is interface X a point-to-point link?'; and possibly a 'for each interface globs>'. And then add condition tests as necessary/desirable later. Yeah sure, but it's all about creating a logical and easy syntax... Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
Brooks Davis wrote: On Fri, Aug 25, 2006 at 12:06:31AM +0200, Fredrik Lindberg wrote: Brooks Davis wrote: It just occured to me that the daemon could handle this without any interaction with dhclient or the static interface configuration. In the mode where you only want an LLA if there isn&#

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
Chuck Swiger wrote: On Aug 24, 2006, at 2:46 PM, Fredrik Lindberg wrote: The nsswitch.conf should IHMO be :files dns mdns, and the mdns nss module should ship with a default to only allow queries to .local .168.254.in-addr.arpa I think you meant .254.168.in-addr.arpa here. Actually

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
e has link which requires it to exit when the link goes down similar to dhclient. I really need to go look at the code and see what you're doing now. :) Well, I'm doing just that...except it's not the routing socket but the netdev filter of the kqueue system. Could be change to the

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
"fxp0" I find this scheme way too different from how other interface configuration is done. Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
mate in a short summary what would be required to adopt the %interface decoration for IPv4? If it turns out to be a very large task, will it still be worth it? Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
ore powerful. Yes, I agree. A user might want to advertise a record only if a certain condition is met, however I think we should be careful not to create a too complex syntax. The mdns.conf must be simple enough so that an average user is able to edit it without too much knowledge. We reall

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
Doug Barton wrote: Fredrik Lindberg wrote: I've been thinking about that too, but I'm still not sure. The RFC says . . . Which RFC(s)? :) My read is that there are several that are relevant, generally, to LLA and mDNS, so it would be useful to know precisely what we're disc

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
X-line. We could have two words, one called LLA that would run in the "forced" mode and another LLA2 (I can't come up a good name) which would run in the RFC compliant way. Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
e nss module. Split the info into sections to make it easier for each to know which parts they aren't expected to understand and put all of the stuff they both want into a shared section. Yes, that's certainly a possibility and will reduce the number of configuration files. Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
ever removes an address from a interface it didn't set itself, and it always sets address as aliases. There is also an option to force it to assign (as an alias) a LLA address even if the interface is already is configured with another address. Fredrik Lindberg ___

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
ture. Is that really necessary? I haven't looked at how the resolver handles the domain search list and how that relates to NSS calls; but couldn't it be handled by implicitly adding 'local' to the list? I was under the impression that resolv.conf was explicitly

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
nd the packet to its default router which probably wouldn't know what to do with the packet and throw it away. Could be pretty ugly. I also don't see how RARP would help because that would require the host to have knowledge of the other hosts M

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
s certainly possible, but I'm not sure if this should be in the lla-daemon or in a separate program. Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Zeroconfig and Multicast DNS

2006-08-24 Thread Fredrik Lindberg
e name. It might be dangerous though as it could try to query for www.google.com.local., a solution to this would be do "blacklist" existing TLDs when a search is done or only to do a search if there are no dots in the name, I think the latter s

Re: Zeroconfig and Multicast DNS

2006-08-23 Thread Fredrik Lindberg
ss and that the packet is sent to 192.168.0.1. If you're in the situation that you need lla (no dhcp server available), you wouldn't know the default route right? And if you need to configure the default route manually it isn't really zeroconfig

Re: Zeroconfig and Multicast DNS

2006-08-23 Thread Fredrik Lindberg
s under a BSD license (client api part). If we mix these together we might be able to avoid the Apache license, but it's of course nice to get a definitive answer on the Apache license. (And maybe my code turns out to be useless... :)) Fredrik Lindberg __

Re: Zeroconfig and Multicast DNS

2006-08-23 Thread Fredrik Lindberg
Bruce Walker wrote: Fredrik Lindberg wrote: mDNSResponder-108 appears to still be under APSL 2, I don't know if that license is acceptable for base utilities, if it is, it might be a viable alternative. It should be under the Apache 2.0 license now. Yes, you are correct. I just grabbe

Re: Zeroconfig and Multicast DNS

2006-08-23 Thread Fredrik Lindberg
lementation (I renamed it to llacd, link local address configuration daemon) is already quite mature. It has been running on a machine here for over a month without problems. Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org

Re: Zeroconfig and Multicast DNS

2006-08-22 Thread Fredrik Lindberg
application that wants to publish a SD record shouldn't need to worry about which type of responder program that is running on the host. Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Zeroconfig and Multicast DNS

2006-08-21 Thread Fredrik Lindberg
t responds to, a service discovery client/agent is needed to find announced records. Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Zeroconfig and Multicast DNS

2006-08-21 Thread Fredrik Lindberg
on routines are currently missing. More information, code and some quick starting hints are available at http://shapeshifter.se/projects/freebsd/zeroconfig/ Fredrik Lindberg ___ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailma