Lines Matching defs:flags

63   int flags, iface_idx, mtu, txqueuelen, parent,iface_type;
161 static void send_nlmesg(int type, int flags, int family,
173 req.nlh.nlmsg_flags = flags;
538 static char *get_flag_string(struct arglist *aflags, int flags, int ismulti)
544 int test = (ismulti ? p->idx & flags : 0) || p->idx == flags;
545 if (test) { // flags can be zero
561 struct ifla_vlan_flags flags;
563 memset(&flags, 0, sizeof(flags));
586 flags.mask |= (idx -1); // VLAN FLAG REORDER Header
587 flags.flags &= ~(idx -1); // VLAN FLAG REORDER Header
588 if (!param) flags.flags |= (idx -1); // VLAN FLAG REORDER Header
592 if (flags.mask)
593 add_string_to_rtattr(n, size, IFLA_VLAN_FLAGS, &flags, sizeof(flags));
690 int idx, flags = 0, masks = 0xffff, fd;
701 flags |= IFF_UP; break;
711 flags &= ~case_flags[idx-2];
712 } else flags |= case_flags[idx-2];
716 flags |= case_flags[idx-2];
750 req.ifr_ifru.ifru_flags |= flags;
789 char *line_feed = " ", *flags,*peer = "brd";
815 if (!(flags = get_flag_string(iface_flags, link->flags, 1)))
824 if (link->flags & IFF_POINTOPOINT) peer = "peer";
829 link->iface_idx, ((link->parent == -1) ? link->iface : toybuf), flags,
841 free(flags);
890 link->flags = iface->ifi_flags;
891 if (*argv && !strcasecmp("up",*argv) && !(link->flags & IFF_UP)) return 1;
929 struct arglist flags[]={{"UNKNOWN", 0}, {"NOTPRESENT", 1},
932 if (!(lname = get_flag_string(flags, *((int*)(RTA_DATA(attr))), 0)))
1361 if (addrinfo.up && !(tmp->flags & IFF_UP)){
1437 else if (addrinfo.up && (link->flags & IFF_UP))
1444 if (addrinfo.up && (link->flags & IFF_UP))