"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ifdown.c" between
sysvinit-2.98.tar.xz and sysvinit-2.99.tar.xz

About: SysVinit - Linux System V style init programs.

ifdown.c  (sysvinit-2.98.tar.xz):ifdown.c  (sysvinit-2.99.tar.xz)
skipping to change at line 61 skipping to change at line 61
sizeof(struct ifreq)) sizeof(struct ifreq))
#else #else
#define _SIZEOF_ADDR_IFREQ(ifr) sizeof(struct ifreq) #define _SIZEOF_ADDR_IFREQ(ifr) sizeof(struct ifreq)
#endif #endif
#endif #endif
/* /*
* First, we find all shaper devices and down them. Then we * First, we find all shaper devices and down them. Then we
* down all real interfaces. This is because the comment in the * down all real interfaces. This is because the comment in the
* shaper driver says "if you down the shaper device before the * shaper driver says "if you down the shaper device before the
* attached inerface your computer will follow". * attached interface your computer will follow".
*/ */
int ifdown(void) int ifdown(void)
{ {
char ifr_buf[sizeof(struct ifreq) * MAX_IFS]; char ifr_buf[sizeof(struct ifreq) * MAX_IFS];
char *ifr_end; char *ifr_end;
struct ifconf ifc; struct ifconf ifc;
int fd; int fd;
int shaper; int shaper;
if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)