Home | History | Annotate | Download | only in drivers

Lines Matching refs:sock

24 int linux_set_iface_flags(int sock, const char *ifname, int dev_up)
28 if (sock < 0)
34 if (ioctl(sock, SIOCGIFFLAGS, &ifr) != 0) {
50 if (ioctl(sock, SIOCSIFFLAGS, &ifr) != 0) {
60 int linux_get_ifhwaddr(int sock, const char *ifname, u8 *addr)
66 if (ioctl(sock, SIOCGIFHWADDR, &ifr)) {
83 int linux_set_ifhwaddr(int sock, const char *ifname, const u8 *addr)
92 if (ioctl(sock, SIOCSIFHWADDR, &ifr)) {
116 int linux_br_add(int sock, const char *brname)
118 if (ioctl(sock, SIOCBRADDBR, brname) < 0) {
128 int linux_br_del(int sock, const char *brname)
130 if (ioctl(sock, SIOCBRDELBR, brname) < 0) {
140 int linux_br_add_if(int sock, const char *brname, const char *ifname)
152 if (ioctl(sock, SIOCBRADDIF, &ifr) < 0) {
162 int linux_br_del_if(int sock, const char *brname, const char *ifname)
174 if (ioctl(sock, SIOCBRDELIF, &ifr) < 0) {