Searched refs:routes (Results 1 - 17 of 17) sorted by relevance

/openbsd-current/sbin/dhcpleased/
H A Dengine.h28 struct dhcp_route routes[MAX_DHCP_ROUTES]; member in struct:imsg_configure_interface
H A Dengine.c113 struct dhcp_route routes[MAX_DHCP_ROUTES]; member in struct:dhcpleased_iface
598 memcpy(cei.routes, iface->routes, sizeof(cei.routes));
731 struct dhcp_route routes[MAX_DHCP_ROUTES]; local
893 memset(&routes, 0, sizeof(routes));
973 if (dho_len < sizeof(routes[routes_len].gw))
975 if (dho_len % sizeof(routes[routes_len].gw) != 0)
979 * Ignore routers option if classless static routes
[all...]
H A Ddhcpleased.h40 /* A 1500 bytes packet can hold less than 300 classless static routes */
243 struct dhcp_route routes[MAX_DHCP_ROUTES]; member in struct:ctl_engine_info
H A Ddhcpleased.c553 fatalx("%s: too many routes in imsg", __func__);
566 fatalx("%s: too many routes in imsg", __func__);
582 fatalx("%s: too many routes in imsg", __func__);
923 * When two default routes have the same gateway the kernel always
926 * all routes pointing out that interface and we end up with no
984 dst.sin_addr = imsg->routes[i].dst;
985 mask.sin_addr = imsg->routes[i].mask;
986 gw.sin_addr = imsg->routes[i].gw;
1007 mask.sin_addr = imsg->routes[i].mask;
/openbsd-current/sbin/dhclient/
H A Dkroute.c190 * get_routes() returns all relevant routes currently configured, and the
212 errmsg = "sysctl size of routes:";
220 errmsg = "routes buf realloc:";
227 errmsg = "sysctl retrieval of routes:";
264 * routes.
266 * If the *rtm route is not in routes, return routes_len.
269 route_pos(struct rt_msghdr *rtm, uint8_t *routes, unsigned int routes_len, argument
301 len = extract_route(&routes[i], routes_len - i, &routesdstaddr,
306 /* Direct route in routes:
332 flush_routes(int index, int routefd, int rdomain, uint8_t *routes, argument
382 discard_route(uint8_t *routes, unsigned int routes_len) argument
458 set_routes(char *name, int index, int rdomain, int routefd, struct in_addr addr, struct in_addr addrmask, uint8_t *routes, unsigned int routes_len) argument
768 extract_route(uint8_t *routes, unsigned int routes_len, in_addr_t *dest, in_addr_t *netmask, in_addr_t *gateway) argument
921 uint8_t *dns, *domains, *routes; local
[all...]
H A Ddhclient.c2003 uint8_t *ns, *p, *routes, *domains; local
2024 routes = opt->data;
2064 memcpy(p, routes, routes_len);
2826 * 2) Unconfigure address/routes/etc.
/openbsd-current/usr.sbin/dhcpleasectl/
H A Ddhcpleasectl.c249 if (inet_ntop(AF_INET, &cei->routes[i].dst, ipbuf,
252 if (inet_ntop(AF_INET, &cei->routes[i].mask, maskbuf,
255 if (inet_ntop(AF_INET, &cei->routes[i].gw,
259 if (cei->routes[i].dst.s_addr == INADDR_ANY
260 && cei->routes[i].mask.s_addr == INADDR_ANY)
265 ffs(ntohl(cei->routes[i].mask.s_addr)),
/openbsd-current/usr.sbin/pppd/
H A Dsys-bsd.c1046 * cifaddr - Clear the interface IP addresses, and delete routes
1101 int routes; local
1109 if ((routes = socket(AF_ROUTE, SOCK_RAW, AF_INET)) == -1) {
1130 if (write(routes, &rtmsg, sizeof(rtmsg)) == -1) {
1133 close(routes);
1137 close(routes);
1161 int routes; local
1173 if ((routes = socket(AF_ROUTE, SOCK_RAW, AF_INET)) == -1) {
1191 if (write(routes, &arpmsg, arpmsg.hdr.rtm_msglen) == -1) {
1193 close(routes);
1211 int routes; local
[all...]
/openbsd-current/regress/usr.sbin/bgpd/integrationtests/
H A Dnetwork_statement.sh77 echo add routes
107 echo delete routes
127 echo add routes
H A Dovs.sh77 echo add routes
/openbsd-current/usr.sbin/eigrpd/
H A Drde.h39 * configured. This way we can inject local routes into the DUAL FSM
42 * inject redistributed and summarized routes.
83 TAILQ_HEAD(,eigrp_route) routes; member in struct:rt_node
H A Drde_dual.c213 TAILQ_INIT(&rn->routes);
238 while ((route = TAILQ_FIRST(&rn->routes)) != NULL)
249 TAILQ_FOREACH(route, &rn->routes, entry)
274 TAILQ_FOREACH(tmp, &rn->routes, entry)
281 TAILQ_INSERT_TAIL(&rn->routes, route, entry);
301 TAILQ_REMOVE(&rn->routes, route, entry);
627 TAILQ_FOREACH(route, &rn->routes, entry) {
628 /* skip redistributed routes */
660 TAILQ_FOREACH(route, &rn->routes, entry)
706 TAILQ_FOREACH(route, &rn->routes, entr
[all...]
H A Drde.c798 TAILQ_FOREACH(route, &rn->routes, entry) {
/openbsd-current/regress/sys/net/rdomains/
H A Difalocal.sh36 expected $4 routes to $1 with ifp $2 in rtable $3, found $matches
/openbsd-current/regress/usr.sbin/ospf6d/
H A Dnetwork_statement.sh84 echo add routes
/openbsd-current/usr.sbin/smtpd/
H A Dmta.c138 static struct mta_route_tree routes; variable in typeref:struct:mta_route_tree
316 log_debug("resuming all routes");
317 SPLAY_FOREACH(route, mta_route_tree, &routes) {
367 SPLAY_FOREACH(route, mta_route_tree, &routes) {
547 SPLAY_INIT(&routes);
1213 relay->failstr = "All routes to destination blocked";
2434 r = SPLAY_FIND(mta_route_tree, &routes, &key);
2442 SPLAY_INSERT(mta_route_tree, &routes, r);
2514 SPLAY_REMOVE(mta_route_tree, &routes, r);
/openbsd-current/gnu/usr.bin/perl/dist/Math-Complex/lib/Math/
H A DTrig.pm644 circles quite often do not look like the shortest routes -- but for
645 example the shortest possible routes from Europe or North America to

Completed in 232 milliseconds