Re: Proposal: remove encap from MROUTING

2007-02-07 Thread Bill Fenner
>I plan to commit this patch some time this week. >---mroute-notunnels.diff, text/x-patch follows--- Please do. Only one comment: >@@ -859,8 +816,6 @@ X_ip_mrouter_done(void) > /* > * Reset de-encapsulation cache > */ >-last_encap_src = INADDR_ANY; >-last_encap_vif = NULL;

Re: Problem with port 0

2007-01-17 Thread Bill Fenner
Hug, If you feel like building a new kernel, I'd suggest commenting out those lines that I quoted in in_pcb.c: if (sin->sin_port == 0) return (EADDRNOTAVAIL); and see if the FreeBSD tftpd behaves the way you want after that. I don't think that's the solution that

Re: Problem with port 0

2007-01-16 Thread Bill Fenner
I'd note that RFC 768 explicitly mentions this possibility: Source Port is an optional field, when meaningful, it indicates the port of the sending process, and may be assumed to be the port to which a reply should be addressed in the absence of any other information. If not used, a value

Re: De-orbitting mrouted

2006-09-28 Thread Bill Fenner
>I think it would be a good idea if we de-orbit /usr/sbin/mrouted in >7-CURRENT. Do it. Maybe consider making a port if anyone cares to continue to use it. (Gee, I suppose I could do that part ;-) Bill ___ freebsd-net@freebsd.org mailing list http

Re: solisten() question: why do we check for completed connections?

2005-02-17 Thread Bill Fenner
Robert, The code in rev 7.1 (4.3BSD) was: if (so->so_q == 0) { so->so_q = so; so->so_q0 = so; so->so_options |= SO_ACCEPTCONN; } which looks like it's initializing q0 and q to be circular queues, which has to only happen once, an

Re: NOARP - gateway must answer and have frozen ARP table

2004-09-24 Thread Bill Fenner
Garrett and I discussed what IFF_NOARP should mean about 4-5 years ago; we decided that it probably menat "no ARP". We discussed the idea of seperating it out into two flags; "Don't reply to ARP" and "don't pay attention to ARP" but decided to wait and see what people thought. 4-5 years is proba

Re: Current problem reports assigned to you

2003-11-10 Thread Bill Fenner
I have been too busy over the last couple of weeks. I have no problem with the multicast filtering API change actually happening, and if someone who actually has time wants to commit it that'd be fine with me. Bill ___ [EMAIL PROTECTED] mailing list

Re: Receiving INADDR_BROADCAST packets

2003-08-22 Thread Bill Fenner
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. Bill ___ [EMAIL P

Re: broadcast udp packets ...

2003-07-02 Thread Bill Fenner
The short answer is no, you can't, in_pcb turns 255.255.255.255 into the "primary" interface's broadcast address. I doubt this is actually useful behavior, but that's not what you asked =) Bill ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.

Re: Multicast Routing

2003-06-17 Thread Bill Fenner
Tom, >Currently, we use a PPP tunnel to put the PBX and Phone on subnets that >can talk to each other. The two FBSD boxen run as the endpoints of the >tunnel. We need to be able to seamlessly forward multicast traffic between >the remote network and the office network. > >Any ideas? mrouted shou

RE: libpcap

2002-12-19 Thread Bill Fenner
I have a patch, which I apparently never committed, to make libpcap respect debug.bpf_bufsize if it's larger than 32k. I will make sure this gets into libpcap and then a release and then FreeBSD (whew). Bill To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the

Re: What does FreeBSD do when listen queue is full ?

2002-04-17 Thread Bill Fenner
>So, if backlog is a threshold for communicating to clients, then I >think RST is the right choice as it communicates server state >unambiguously. I disagree; RST does not communicate server state unambiguously. RST is used in response to an erroneous packet on a synchronized connection, in resp

Re: What does FreeBSD do when listen queue is full ?

2002-04-17 Thread Bill Fenner
>We don't send a RST, we just silently drop the connection. This is wrong too; it should silently drop the ACK and leave the connection in the pending queue. >However, at the point we're talking about, >we're already past the 3-way handshake I thought we were talking about the ACK that finishe

Re: What does FreeBSD do when listen queue is full ?

2002-04-17 Thread Bill Fenner
>I just did a quick look over the code, and it appears that the complete >connection queue is still intact, and takes on 3/2*listen backlog as its >length. Therefore, if sendmail is deciding to not accept() all >connections ASAP, a backlog will build up, and RSTs will be sent to >incoming connec

Re: IP fragmentation (was Re: Fatal trap 12: page fault while in kernel mode)

2002-04-05 Thread Bill Fenner
>The only difference I can see is that in ip_input(), if nipq > maxnipq, >all of the fragments for some other packet in the current hash bucket >get dropped (with the wonderfully descriptive comment "gak"). The best thing to do is to drop the oldest frag queue; that's obviously non-trivial with

Re: IP fragmentation (was Re: Fatal trap 12: page fault while in kernel mode)

2002-04-05 Thread Bill Fenner
>Just for the heck of it, I started reading through ip_input.c to see how >hard this would be to do. Haven't got there yet, I saw something odd: >the variables ip_nfragpackets and nipq look *awfully* similar. So do the commit logs for the revisions in which each was introduced. Revision 1.65 -

Re: NOARP - gateway must answer and have frozen ARP table

2001-12-06 Thread Bill Fenner
Garrett and I discussed what IFF_NOARP should mean about 4-5 years ago; we decided that it probably menat "no ARP". We discussed the idea of seperating it out into two flags; "Don't reply to ARP" and "don't pay attention to ARP" but decided to wait and see what people thought. 4-5 years is prob

Re: performance issues with M_PREPEND on clusters

2001-10-26 Thread Bill Fenner
> The M_LEADINGSPACE macro always had the line of code that would return >the leading space even for ext_bufs commented out, suggesting that the >code did exist in the original implementation or was intended to. The M_LEADINGSPACE macro was introduced in rev 7.11 of mbuf.h, in August 1988, at t

Re: performance issues with M_PREPEND on clusters

2001-10-25 Thread Bill Fenner
Luigi Rizzo <[EMAIL PROTECTED]> said: >On Tue, Oct 23, 2001 at 03:17:04PM -0400, Garrett Wollman wrote: >> ... the whole purpose of m_pullup is to >> *guarantee* that the data in question will never be shared. > >Technically, it is correct that m_pullup guarantees that the data >in question will

Re: Squid Inside a Jail Fails - DNS Errors

2001-10-16 Thread Bill Fenner
Can you try telling squid to bind to the jail IP address with the 'udp_outgoing_address' option? Bill To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message

Re: VLAN speed

2001-10-15 Thread Bill Fenner
>If I remember correct VLANs are not >even in ifTable, since they are not interfaces Why not? My reading of RFC 2863's section 3.1 says that although the VLAN multiplexing was not explicitly considered, it fits the ifStack model perfectly, and satisfies the requirements for defining a layer (n

Re: mrouted 3.8(how to find multicast members??)

2001-10-15 Thread Bill Fenner
> But the definition of threshhold TTL says that a >incoming multicast packets will be forwarded out of an >interface only if it has the TTL value >= threshold >TTL of that interface. Am I right? No. Zero is special, and means do not forward. If you have the kernel source, check out the ip_mdq

Re: VLAN speed

2001-10-09 Thread Bill Fenner
>Why does vlans announce themselves as being 10 Mbits/s? I'm getting this >from snmp on vlans that are attached to 100 Mbits/s cards. Because if_vlan.c calls ether_ifattach() without setting ifp->if_baudrate? I think "0" would be the most accurate value to return; if you really want to know th

Re: arp -s not working with VLANS ?

2001-09-10 Thread Bill Fenner
This should work in -stable and -current (arp.c version 1.22.2.2 or 1.29). You could apply this diff: http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/arp/arp.c.diff?r1=1.22.2.1&r2=1.22.2.2 Bill To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of t

Re: forwarding broadcast

2001-08-09 Thread Bill Fenner
>We had directed-broadcast forwarding before, and it was removed. >Perhaps someone might examine the CVS logs to see when and why. | Revision 1.32 / Dec 20 1995 (5 years, 7 months ago) by wollman | | Demolish DIRECTED_BROADCAST. It was always a bad idea, and nobody uses it. I don't feel as s

Re: forwarding broadcast

2001-08-09 Thread Bill Fenner
>On FreeBSD -CURRENT and -STABLE, packets to broadcast addresses are not >forwarded. "smurf" attacks love using broadcast forwarders. RFC 2644 says: > A router MAY have an option to enable receiving network-prefix- > directed broadcasts on an interface and MAY have an option to >

BPF and broadcasts (was Re: forwarding broadcast)

2001-08-09 Thread Bill Fenner
>One more thing, -CURRENT will stuff two copies of any broadcast into bpf, >it seems. This is because if_simloop() is broken. I proposed to un-break it a while ago and never got any feedback. http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=198310+201485+/usr/local/www/db/text/2001/freebsd-net/200

Re: cvs commit: src/sys/netinet ip_output.c

2001-08-03 Thread Bill Fenner
>@@ -964,7 +957,7 @@ sendorfree: > /* clean ipsec history once it goes out of the node */ > ipsec_delaux(m); > #endif >- if (error == 0) { >+ if (error == 0 && ia) { > /* Record statistics for this interface address. */ >

Re: TCP window and vlans

2001-07-30 Thread Bill Fenner
Are the VLAN interfaces trunked on the FreeBSD side (i.e. vlanN)? Are you getting bitten by the device driver dropping large frames (VLAN trunks need a higher MRU/MTU, which no drivers seem to support; see http://www.euitt.upm.es/~pjlobo/fbsdvlan.html for if_fxp patches) If you set the MTU to 14

Re: problem with MROUTED

2001-07-25 Thread Bill Fenner
Dmitry, In the future, please publish large files on a web site or something and offer URLs instead of attaching the files to a mailing list. I'd like to see an mrouted.cache and a netstat -g taken at the same time; perhaps it'd be best to just attach them in email to me and leave the list

Re: 802.1q and multicasting

2001-07-19 Thread Bill Fenner
Sorry, no, I can't answer these problems. I'm still working on getting multicast completely working. Bill To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message

Re: 802.1q and multicasting

2001-07-18 Thread Bill Fenner
Actually, I guess I *did* commit them, in -current. I will look at merging them next week. Bill To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message

Re: 802.1q and multicasting

2001-07-18 Thread Bill Fenner
The vlan driver doesn't set up the multicast filters correctly on the underlying interface. I've got a patch sitting in my CVS tree that I should probably just commit... Bill To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-net" in the body of the message

if_simloop() and BPF

2001-04-27 Thread Bill Fenner
BPF handling in if_simloop() is broken for every use except for from looutput(). Why? BPF write: BPF writes go through if_output, and if_simloop() is not an if_output routine. This code should be in looutput(). BPF tap: if_simloop() prepends the header that BPF expects when it's capturing on

Re: 4.3 issue: new ICMP handling broke date(1)

2001-03-27 Thread Bill Fenner
I prefer Jesper's other patch (the one that goes back to code = PRC_UNREACH_PORT). Note that the comment here: /* * RFC 1122, Sections 3.2.2.1 and 4.2.3.9. * Treat subcodes 2,3 as immediate RST */

Re: ucd snmp and MIBs for turbostack TS24tr

2001-03-26 Thread Bill Fenner
Perhaps the MIB has more errors than you know. If you give me a pointer to the MIB and some samples of the numerical OIDs that you're getting I might be able to help. If you pick a name in that MIB and say "snmptranslate ", does it tell you the OID associated with it? At one point you had to d

Re: orinoco silver card

2001-03-26 Thread Bill Fenner
>I'm not sure when this capability appeared. There is no man page for >pccard_ether or start_if and I totally missed it until now. It appeared in -stable on February 4th; 4.3 will be the first release so it's not particularly surprising that you didn't know about it. I've been modifying /etc/pcc

4.3 issue: new ICMP handling broke date(1)

2001-03-26 Thread Bill Fenner
Now that an ICMP port unreachable returns ENETRESET and not ECONNREFUSED, setting the date on the command line results in a bogusly-reported error. Before you fix the bug in date/netdate.c, it tends to report EADDRINUSE; afterwards it tends to report ENETRESET. Why did the handling of "udp port