Date: Mon, 8 Apr 1996 08:52:43 -0600 From: Nate Williams <nate@sri.MT.net> To: Michael Smith <msmith@atrad.adelaide.edu.au> 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? Message-ID: <199604081452.IAA24889@rocky.sri.MT.net> In-Reply-To: <199604080645.QAA08973@genesis.atrad.adelaide.edu.au> References: <199604080330.HAA00431@astral.msk.su> <199604080645.QAA08973@genesis.atrad.adelaide.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604081452.IAA24889>