Home
last modified time | relevance | path

Searched refs:ripbuf (Results 1 – 2 of 2) sorted by relevance

/freebsd/usr.sbin/rip6query/
H A Drip6query.c58 static struct rip6 *ripbuf; variable
128 if ((ripbuf = (struct rip6 *)malloc(BUFSIZ)) == NULL) { in main()
132 ripbuf->rip6_cmd = RIP6_REQUEST; in main()
133 ripbuf->rip6_vers = RIP6_VERSION; in main()
134 ripbuf->rip6_res1[0] = 0; in main()
135 ripbuf->rip6_res1[1] = 0; in main()
136 np = ripbuf->rip6_nets; in main()
141 if (sendto(s, ripbuf, RIPSIZE(1), 0, (struct sockaddr *)&sin6, in main()
148 if ((len = recvfrom(s, ripbuf, BUFSIZ, 0, in main()
157 np = ripbuf->rip6_nets; in main()
/freebsd/usr.sbin/route6d/
H A Droute6d.c132 static struct rip6 *ripbuf; /* packet buffer for sending */ variable
393 if ((ripbuf = (struct rip6 *)malloc(RIP6_MAXMTU)) == NULL) in main()
395 memset(ripbuf, 0, RIP6_MAXMTU); in main()
396 ripbuf->rip6_cmd = RIP6_RESPONSE; in main()
397 ripbuf->rip6_vers = RIP6_VERSION; in main()
398 ripbuf->rip6_res1[0] = 0; in main()
399 ripbuf->rip6_res1[1] = 0; in main()
430 if ((ripbuf = (struct rip6 *)malloc(RIP6_MAXMTU)) == NULL) { in main()
434 memset(ripbuf, 0, RIP6_MAXMTU); in main()
435 ripbuf->rip6_cmd = RIP6_RESPONSE; in main()
[all …]