Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 1997 02:16:58 -0800
From:      Amancio Hasty <hasty@rah.star-gate.com>
To:        Mike Smith <mike@smith.net.au>
Cc:        current@freefall.FreeBSD.org
Subject:   Re: tcp/ip buglet ? 
Message-ID:  <199711251016.CAA00769@rah.star-gate.com>
In-Reply-To: Your message of "Tue, 25 Nov 1997 19:09:12 %2B1030." <199711250839.TAA01011@word.smith.net.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
udp_output(inp, m, addr, control, p)
	struct inpcb *inp;
	struct mbuf *m;
	struct sockaddr *addr;
	struct mbuf *control;
	struct proc *p;
{
	struct udpiphdr *ui;
	int len = m->m_pkthdr.len;
	struct in_addr laddr;
	struct sockaddr_in * fuck;
	int s = 0, error = 0;

	if (control)
		m_freem(control);		/* XXX */

	if (len + sizeof(struct udpiphdr) > IP_MAXPACKET) {
		error = EMSGSIZE;
		goto release;
	}

	if (addr) {
	        
		laddr = inp->inp_laddr;
		if (inp->inp_faddr.s_addr != INADDR_ANY) {
			error = EISCONN;
			goto release;
		}
		/*
		 * Must block input while temporarily connected.
		 */
		s = splnet();
		error = in_pcbconnect(inp, addr, p);

The port and address of addr are 0....

The linux layer call is :

/sys/i386/linux/linux_socket.c:linux_sendto

I am pretty sure that linux_sendto is correct.

	Cheers,
	Amancio





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199711251016.CAA00769>