From owner-freebsd-current Mon Apr 8 07:53:01 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id HAA01574 for current-outgoing; Mon, 8 Apr 1996 07:53:01 -0700 (PDT) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id HAA01568 for ; Mon, 8 Apr 1996 07:52:56 -0700 (PDT) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id IAA24889; Mon, 8 Apr 1996 08:52:43 -0600 Date: Mon, 8 Apr 1996 08:52:43 -0600 From: Nate Williams Message-Id: <199604081452.IAA24889@rocky.sri.MT.net> To: Michael Smith Cc: ache@astral.msk.su (=?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?=), current@freebsd.org Subject: Re: routed delete my PPP default: how to fight it? In-Reply-To: <199604080645.QAA08973@genesis.atrad.adelaide.edu.au> References: <199604080330.HAA00431@astral.msk.su> <199604080645.QAA08973@genesis.atrad.adelaide.edu.au> Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > It was what I do. It seems that PPP send routed brodcasts. > > Well, having checked the sources, I have to say that unless it cons' code > up out of nowhere when it runs, there doesn't appear to be _any_ UDP > code, routed-aware or not in iijppp. Umm, I know there is some IP code being sent out in iijppp, but it's not necessary. It might be interpreted as 'UDP' code. if ((routes = socket(PF_ROUTE, SOCK_RAW, AF_INET)) < 0) { logprintf("sifproxyarp: opening routing socket: \n"); return 0; } arpmsg.hdr.rtm_type = RTM_ADD; arpmsg.hdr.rtm_flags = RTF_ANNOUNCE | RTF_HOST | RTF_STATIC; arpmsg.hdr.rtm_version = RTM_VERSION; arpmsg.hdr.rtm_seq = ++rtm_seq; arpmsg.hdr.rtm_addrs = RTA_DST | RTA_GATEWAY; arpmsg.hdr.rtm_inits = RTV_EXPIRE; arpmsg.dst.sin_len = sizeof(struct sockaddr_inarp); arpmsg.dst.sin_family = AF_INET; arpmsg.dst.sin_addr.s_addr = hisaddr; arpmsg.dst.sin_other = SIN_PROXY; arpmsg.hdr.rtm_msglen = (char *) &arpmsg.hwa - (char *) &arpmsg + arpmsg.hwa.sdl_len; if (write(routes, &arpmsg, arpmsg.hdr.rtm_msglen) < 0) { ... Look in arp.c Nate