search for: rt_flags

Displaying 11 results from an estimated 11 matches for "rt_flags".

Did you mean: st_flags
2003 Jun 06
0
crash in networking code (with bt and debug kernel)
...rap_pfault(&frame, FALSE, eva); 467 return; 468 469 case T_DNA: 470 #if NNPX > 0 (kgdb) up 1 #6 0xc019a569 in arp_rtrequest (req=1, rt=0xc3c5a400, info=0xdf0b1da4) at /usr/src/sys/netinet/if_ether.c:186 186 if ((rt->rt_flags & RTF_HOST) == 0 && (kgdb) list 181 /* 182 * XXX: If this is a manually added route to interface 183 * such as older version of routed or gated might provide, 184 * restore cloning bit. 185...
2018 Jun 12
0
[PATCH v2] Implement classless static routes
...+int netdev_setroutes(struct netdev *dev) { struct rtentry r; - if (dev->ip_gateway == INADDR_ANY) - return 0; - - memset(&r, 0, sizeof(r)); - - set_s_addr(&r.rt_dst, INADDR_ANY); - set_s_addr(&r.rt_gateway, dev->ip_gateway); - set_s_addr(&r.rt_genmask, INADDR_ANY); - r.rt_flags = RTF_UP | RTF_GATEWAY; - - if (ioctl(cfd, SIOCADDRT, &r) == -1 && errno != EEXIST) { - perror("SIOCADDRT"); - return -1; + /* RFC3442 demands: + If the DHCP server returns both a Classless Static Routes option and + a Router option, the DHCP client MUST ignore the Rou...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...+int netdev_setroutes(struct netdev *dev) { struct rtentry r; - if (dev->ip_gateway == INADDR_ANY) - return 0; - - memset(&r, 0, sizeof(r)); - - set_s_addr(&r.rt_dst, INADDR_ANY); - set_s_addr(&r.rt_gateway, dev->ip_gateway); - set_s_addr(&r.rt_genmask, INADDR_ANY); - r.rt_flags = RTF_UP | RTF_GATEWAY; - - if (ioctl(cfd, SIOCADDRT, &r) == -1 && errno != EEXIST) { - perror("SIOCADDRT"); - return -1; + /* RFC3442 demands: + If the DHCP server returns both a Classless Static Routes option and + a Router option, the DHCP client MUST ignore the Rou...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...+int netdev_setroutes(struct netdev *dev) { struct rtentry r; - if (dev->ip_gateway == INADDR_ANY) - return 0; - - memset(&r, 0, sizeof(r)); - - set_s_addr(&r.rt_dst, INADDR_ANY); - set_s_addr(&r.rt_gateway, dev->ip_gateway); - set_s_addr(&r.rt_genmask, INADDR_ANY); - r.rt_flags = RTF_UP | RTF_GATEWAY; - - if (ioctl(cfd, SIOCADDRT, &r) == -1 && errno != EEXIST) { - perror("SIOCADDRT"); - return -1; + /* RFC3442 demands: + If the DHCP server returns both a Classless Static Routes option and + a Router option, the DHCP client MUST ignore the Rou...
2017 Dec 19
0
[PATCH] Implement classless static routes
...+int netdev_setroutes(struct netdev *dev) { struct rtentry r; - if (dev->ip_gateway == INADDR_ANY) - return 0; - - memset(&r, 0, sizeof(r)); - - set_s_addr(&r.rt_dst, INADDR_ANY); - set_s_addr(&r.rt_gateway, dev->ip_gateway); - set_s_addr(&r.rt_genmask, INADDR_ANY); - r.rt_flags = RTF_UP | RTF_GATEWAY; - - if (ioctl(cfd, SIOCADDRT, &r) == -1 && errno != EEXIST) { - perror("SIOCADDRT"); - return -1; + /* RFC3442 demands: + If the DHCP server returns both a Classless Static Routes option and + a Router option, the DHCP client MUST ignore the Rou...
2010 Jan 18
0
[PATCH] nv04-nv40: Rewrite and unify miptree and transfer code
...t a/src/gallium/drivers/nv30/nv30_state_fb.c b/src/gallium/drivers/nv30/nv30_state_fb.c index 2ed2ea5..07cb130 100644 --- a/src/gallium/drivers/nv30/nv30_state_fb.c +++ b/src/gallium/drivers/nv30/nv30_state_fb.c @@ -14,7 +14,7 @@ nv30_state_framebuffer_validate(struct nv30_context *nv30) unsigned rt_flags = NOUVEAU_BO_RDWR | NOUVEAU_BO_VRAM; unsigned w = fb->width; unsigned h = fb->height; - struct nv30_miptree *nv30mt; + struct nv04_miptree *mt; int colour_bits = 32, zeta_bits = 32; for (i = 0; i < fb->nr_cbufs; i++) { @@ -109,34 +109,34 @@ nv30_state_framebuffer_validate(stru...
2010 Jan 18
0
[PATCH] nv04-nv40: Rewrite and unify miptree and transfer code (v2)
...t a/src/gallium/drivers/nv30/nv30_state_fb.c b/src/gallium/drivers/nv30/nv30_state_fb.c index 2ed2ea5..c0b5b6a 100644 --- a/src/gallium/drivers/nv30/nv30_state_fb.c +++ b/src/gallium/drivers/nv30/nv30_state_fb.c @@ -14,7 +14,7 @@ nv30_state_framebuffer_validate(struct nv30_context *nv30) unsigned rt_flags = NOUVEAU_BO_RDWR | NOUVEAU_BO_VRAM; unsigned w = fb->width; unsigned h = fb->height; - struct nv30_miptree *nv30mt; + struct nv04_miptree *mt; int colour_bits = 32, zeta_bits = 32; for (i = 0; i < fb->nr_cbufs; i++) { @@ -109,34 +109,34 @@ nv30_state_framebuffer_validate(stru...
2009 Apr 22
0
networking problems in kinit
...datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) { ... err = ip_route_connect(&rt, usin->sin_addr.s_addr, saddr, RT_CONN_FLAGS(sk), oif, sk->sk_protocol, inet->sport, usin->sin_port, sk, 1); if (err) return err; if ((rt->rt_flags & RTCF_BROADCAST) && !sock_flag(sk, SOCK_BROADCAST)) { ip_rt_put(rt); return -EACCES; >>>>>> This throws me out <<<<<<<<< } ... } So for me it seems, that there is something wrong or not correctly set up in the routing table. (But the...
2012 Jan 10
5
[PATCH 0/4] nvfx: rework render temps code and fixes
This patch series silences some unknown cap warnings and fixes up coding style (patch 1+4). The most important part of this series are the two patches in the middle. They rework the state_fb code, so that we are able to render to not 64 byte aligned targets, as this is the only real use-case for render temporaries this allows us to drop temp code completely and simplifies a lot
2009 Dec 30
4
[PATCH 1/3] nv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped
- This avoids problematic "reloc'ed while mapped" messages and some associated corruption as well. Signed-off-by: Maarten Maathuis <madman2003 at gmail.com> --- src/gallium/drivers/nouveau/nouveau_screen.c | 21 +++++++++++++++++++++ src/gallium/drivers/nouveau/nouveau_screen.h | 3 +++ src/gallium/drivers/nouveau/nouveau_stateobj.h | 13 +++++++++++++
2003 May 22
0
[PATCH 2.5.69 1/3] remove ipconfig support from the kernel
..."IP-Config: Gateway not on directly connected network.\n"); - return -1; - } - set_sockaddr((struct sockaddr_in *) &rm.rt_dst, 0, 0); - set_sockaddr((struct sockaddr_in *) &rm.rt_genmask, 0, 0); - set_sockaddr((struct sockaddr_in *) &rm.rt_gateway, ic_gateway, 0); - rm.rt_flags = RTF_UP | RTF_GATEWAY; - if ((err = ic_route_ioctl(SIOCADDRT, &rm)) < 0) { - printk(KERN_ERR "IP-Config: Cannot add default route (%d).\n", err); - return -1; - } - } - - return 0; -} - -/* - * Fill in default values for all missing parameters. - */ - -static int __init ic_d...