search for: iff_running

Displaying 8 results from an estimated 8 matches for "iff_running".

2014 Jun 23
1
Re: [netcf]IFF_RUNNING flag on a bridge device
On 28.05.2014 15:27, Laine Stump wrote: > On 05/27/2014 09:07 AM, Jianwei Hu wrote: >> Hi All, >> >> I have one netcf question, please help me to resolve it, thanks. >> >> I can set a IFF_RUNNING flag to a bridge device which are no interface device attached. What status of a flag on a bridge device in current kernel?(w/o interface), is this a new change in kernel or other component? In netcf, but there is a patch to fix that flag issue, I can't understand it. >> >> fix wr...
2014 May 27
2
[netcf]IFF_RUNNING flag on a bridge device
Hi All, I have one netcf question, please help me to resolve it, thanks. I can set a IFF_RUNNING flag to a bridge device which are no interface device attached. What status of a flag on a bridge device in current kernel?(w/o interface), is this a new change in kernel or other component? In netcf, but there is a patch to fix that flag issue, I can't understand it. fix wrong status of bri...
2014 May 28
0
Re: [netcf]IFF_RUNNING flag on a bridge device
On 05/27/2014 09:07 AM, Jianwei Hu wrote: > Hi All, > > I have one netcf question, please help me to resolve it, thanks. > > I can set a IFF_RUNNING flag to a bridge device which are no interface device attached. What status of a flag on a bridge device in current kernel?(w/o interface), is this a new change in kernel or other component? In netcf, but there is a patch to fix that flag issue, I can't understand it. > > fix wrong stat...
2003 Jun 04
3
bge drivers does not work for 3COM 3C996-SX / 3C996B-T
...> bge_init(xsc) > void *xsc; > { > struct bge_softc *sc = xsc; > struct ifnet *ifp; > u_int16_t *m; > int s; > > s = splimp(); > > ifp = &sc->arpcom.ac_if; > > if (ifp->if_flags & IFF_RUNNING) > --> missing splx ? > return; > > > Fabien
2017 Dec 19
0
[PATCH] Implement classless static routes
...etdefaultroute(struct netdev *dev); +int netdev_setroutes(struct netdev *dev); int netdev_up(struct netdev *dev); int netdev_down(struct netdev *dev); int netdev_init_if(struct netdev *dev); @@ -83,4 +93,11 @@ static inline int netdev_running(struct netdev *dev) return ret ? 0 : !!(flags & IFF_RUNNING); } +static inline uint32_t netdev_genmask(uint32_t netmask_width) +{ + /* Map netmask width to network mask in network byte order. + Example: 24 -> "255.255.255.0" -> htonl(0xFFFFFF00) */ + return htonl(~((1u << (32 - netmask_width)) - 1)); +} + #endif /* IPCONFIG_NETD...
2018 Jun 12
0
[PATCH v2] Implement classless static routes
...etdefaultroute(struct netdev *dev); +int netdev_setroutes(struct netdev *dev); int netdev_up(struct netdev *dev); int netdev_down(struct netdev *dev); int netdev_init_if(struct netdev *dev); @@ -83,4 +92,15 @@ static inline int netdev_running(struct netdev *dev) return ret ? 0 : !!(flags & IFF_RUNNING); } +static inline uint32_t netdev_genmask(uint32_t netmask_width) +{ + /* Map netmask width to network mask in network byte order. + Example: 24 -> "255.255.255.0" -> htonl(0xFFFFFF00) */ + if (netmask_width == 0) { + return 0; + } else { + return htonl(~((1u << (32 -...
2019 Jan 18
0
[klibc:master] ipconfig: Implement classless static routes
...etdefaultroute(struct netdev *dev); +int netdev_setroutes(struct netdev *dev); int netdev_up(struct netdev *dev); int netdev_down(struct netdev *dev); int netdev_init_if(struct netdev *dev); @@ -84,4 +93,15 @@ static inline int netdev_running(struct netdev *dev) return ret ? 0 : !!(flags & IFF_RUNNING); } +static inline uint32_t netdev_genmask(uint32_t netmask_width) +{ + /* Map netmask width to network mask in network byte order. + Example: 24 -> "255.255.255.0" -> htonl(0xFFFFFF00) */ + if (netmask_width == 0) { + return 0; + } else { + return htonl(~((1u << (32 -...
2018 Jun 18
1
[PATCH v3 1/2] Implement classless static routes
...etdefaultroute(struct netdev *dev); +int netdev_setroutes(struct netdev *dev); int netdev_up(struct netdev *dev); int netdev_down(struct netdev *dev); int netdev_init_if(struct netdev *dev); @@ -83,4 +92,15 @@ static inline int netdev_running(struct netdev *dev) return ret ? 0 : !!(flags & IFF_RUNNING); } +static inline uint32_t netdev_genmask(uint32_t netmask_width) +{ + /* Map netmask width to network mask in network byte order. + Example: 24 -> "255.255.255.0" -> htonl(0xFFFFFF00) */ + if (netmask_width == 0) { + return 0; + } else { + return htonl(~((1u << (32 -...