Displaying 20 results from an estimated 43 matches for "if_nametoindex".
2009 Aug 13
2
if_indextoname on Windows?
...us/library/bb408408%28VS.85%29.aspx
However, I can''t get mkmf to see it. I tried all of these:
require ''mkmf''
if have_header(''netioapi.h'') # yes
have_func(''if_indextoname'', ''netioapi.h'') # no
have_func(''if_nametoindex'', ''netioapi.h'') # no
end
if have_header(''iphlpapi.h'') # yes
have_func(''if_indextoname'', ''iphlpapi.h'') # no
have_func(''if_nametoindex'', ''iphlpapi.h'') # no
end
have_library('...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...err = br_set_vepa_mode(argv[1], vepa);
+ if (err)
+ fprintf(stderr, "set vepa mode failed: %s\n",
+ strerror(errno));
+ return err != 0;
+}
+
+static int br_cmd_vepauplink(int argc, char *const* argv)
+{
+ const char *brname = *++argv;
+ const char *ifname = *++argv;
+ int err;
+
+ if (if_nametoindex(ifname) == 0) {
+ fprintf(stderr, "interface %s does not exist!\n",
+ ifname);
+ return 1;
+ } else if (if_nametoindex(brname) == 0) {
+ fprintf(stderr, "bridge %s does not exist!\n",
+ brname);
+ return 1;
+ }
+
+ err = br_set_vepa_uplink(brname, ifname);
+
+ if (err) {...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...err = br_set_vepa_mode(argv[1], vepa);
+ if (err)
+ fprintf(stderr, "set vepa mode failed: %s\n",
+ strerror(errno));
+ return err != 0;
+}
+
+static int br_cmd_vepauplink(int argc, char *const* argv)
+{
+ const char *brname = *++argv;
+ const char *ifname = *++argv;
+ int err;
+
+ if (if_nametoindex(ifname) == 0) {
+ fprintf(stderr, "interface %s does not exist!\n",
+ ifname);
+ return 1;
+ } else if (if_nametoindex(brname) == 0) {
+ fprintf(stderr, "bridge %s does not exist!\n",
+ brname);
+ return 1;
+ }
+
+ err = br_set_vepa_uplink(brname, ifname);
+
+ if (err) {...
2009 Jun 15
0
[Bridge] [PATCH][RFC] bridge-utils: add basic VEPA support
...err = br_set_vepa_mode(argv[1], vepa);
+ if (err)
+ fprintf(stderr, "set vepa mode failed: %s\n",
+ strerror(errno));
+ return err != 0;
+}
+
+static int br_cmd_vepauplink(int argc, char *const* argv)
+{
+ const char *brname = *++argv;
+ const char *ifname = *++argv;
+ int err;
+
+ if (if_nametoindex(ifname) == 0) {
+ fprintf(stderr, "interface %s does not exist!\n",
+ ifname);
+ return 1;
+ } else if (if_nametoindex(brname) == 0) {
+ fprintf(stderr, "bridge %s does not exist!\n",
+ brname);
+ return 1;
+ }
+
+ err = br_set_vepa_uplink(brname, ifname);
+
+ if (err) {...
2007 Apr 18
1
[Bridge] patch for a message bug
...Manty/BestiaTester -> http://manty.net
diff -u -r bridge-utils.old/brctl/brctl_cmd.c bridge-utils-1.1/brctl/brctl_cmd.c
--- bridge-utils.old/brctl/brctl_cmd.c 2006-08-26 19:31:23.000000000 +0200
+++ bridge-utils-1.1/brctl/brctl_cmd.c 2006-08-26 19:31:49.000000000 +0200
@@ -99,7 +99,7 @@
if (if_nametoindex(ifname) == 0)
fprintf(stderr, "interface %s does not exist!\n", ifname);
else
- fprintf(stderr, "bridge %s does not exist\n", brname);
+ fprintf(stderr, "bridge %s does not exist!\n", brname);
break;
case EBUSY:
@@ -139,8 +139,10 @@
continue...
2007 Nov 22
1
[Bridge] Conflict between net/if.h and linux/if.h
Hi,
I use the libbridge and an other lib (libnl) in a same project.
I include the headers files of the two lib (libnl first and libbridgge
after) and I've a conflict with the inclusion of linux/if.h (in libnl
headers) and net/if.h (in libbridge.h), I've this error :
/usr/include/net/if.h:45: error: parse error before numeric constant
/usr/include/net/if.h:111: error: redefinition of
2007 Apr 18
1
[Bridge] Little problem with 1.x versions (if_indextoname)
Hi,
I have used bridge-utils 0.9.6 so far in a kernel 2.4.26, uClibc and ppc environment.
When I use version 1.0.3 I have the problem that I do not see the brige with the 'brctl show' command if it is not fully set up. It was working with 0.9.6.
I tracked the problem down to an 'incompatibility' in bridge/uClibc/kernel.
0.9.6 uses its own if_indextoname function which uses the
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...uot;yes")
+ || !strcmp(hpmode, "1"))
+ hairpin = 1;
+ else if (!strcmp(hpmode, "off") || !strcmp(hpmode, "no")
+ || !strcmp(hpmode, "0"))
+ hairpin = 0;
+ else {
+ fprintf(stderr, "expect on/off for argument\n");
+ return 1;
+ }
+ if (if_nametoindex(ifname) == 0) {
+ fprintf(stderr, "interface %s does not exist!\n",
+ ifname);
+ return 1;
+ } else if (if_nametoindex(brname) == 0) {
+ fprintf(stderr, "bridge %s does not exist!\n",
+ brname);
+ return 1;
+ }
+
+ err = br_set_hairpin_mode(brname, ifname, hairpin);
+
+...
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...uot;yes")
+ || !strcmp(hpmode, "1"))
+ hairpin = 1;
+ else if (!strcmp(hpmode, "off") || !strcmp(hpmode, "no")
+ || !strcmp(hpmode, "0"))
+ hairpin = 0;
+ else {
+ fprintf(stderr, "expect on/off for argument\n");
+ return 1;
+ }
+ if (if_nametoindex(ifname) == 0) {
+ fprintf(stderr, "interface %s does not exist!\n",
+ ifname);
+ return 1;
+ } else if (if_nametoindex(brname) == 0) {
+ fprintf(stderr, "bridge %s does not exist!\n",
+ brname);
+ return 1;
+ }
+
+ err = br_set_hairpin_mode(brname, ifname, hairpin);
+
+...
2009 Aug 13
0
[Bridge] [PATCH] bridge-utils: Add 'hairpin' port forwarding mode
...uot;yes")
+ || !strcmp(hpmode, "1"))
+ hairpin = 1;
+ else if (!strcmp(hpmode, "off") || !strcmp(hpmode, "no")
+ || !strcmp(hpmode, "0"))
+ hairpin = 0;
+ else {
+ fprintf(stderr, "expect on/off for argument\n");
+ return 1;
+ }
+ if (if_nametoindex(ifname) == 0) {
+ fprintf(stderr, "interface %s does not exist!\n",
+ ifname);
+ return 1;
+ } else if (if_nametoindex(brname) == 0) {
+ fprintf(stderr, "bridge %s does not exist!\n",
+ brname);
+ return 1;
+ }
+
+ err = br_set_hairpin_mode(brname, ifname, hairpin);
+
+...
2017 Oct 20
0
Wine release 2.0.3
...220 Adobe Premiere needs ntoskrnl.exe.KeReleaseSpinLock
43268 Wargaming.net Game Center needs msvcp140.dll._To_byte
43283 Crazyracing KartRider: Crashes on startup on unimplemented function ntoskrnl.exe.IoCreateNotificationEvent
43295 BitLord crashes on unimplemented function IPHLPAPI.DLL.if_nametoindex
43303 PHP crashes on unimplemented function api-ms-win-crt-math-l1-1-0.dll.acosh
43304 PHP crashes on unimplemented function api-ms-win-crt-math-l1-1-0.dll.atanh
43305 numpy crashes on unimplemented function api-ms-win-crt-math-l1-1-0.dll.log1p
43334 winealsa.drv: Warning while building...
2013 Feb 19
13
[PATCH] mini-os: implement poll(2)
...rotocol)
{
@@ -1360,7 +1449,6 @@ unsupported_function(int, tcgetattr, 0);
unsupported_function(int, grantpt, -1);
unsupported_function(int, unlockpt, -1);
unsupported_function(char *, ptsname, NULL);
-unsupported_function(int, poll, -1);
/* net/if.h */
unsupported_function_log(unsigned int, if_nametoindex, -1);
--
1.7.10.4
2007 Apr 18
0
[Bridge] [PATCH] Better test for libsysfs
...igure script print a warning if libsysfs cannot be used.
The patch is against bridge-utils-1.0.4.
--
Regards,
Pavel Roskin
-------------- next part --------------
--- configure.in
+++ configure.in
@@ -24,7 +24,14 @@
AC_FUNC_MEMCMP
AC_CHECK_FUNCS(gethostname socket strdup uname)
AC_CHECK_FUNCS(if_nametoindex if_indextoname)
-AC_CHECK_LIB(sysfs, sysfs_open_directory)
+
+dnl Check for libsysfs
+libsysfs_found=0
+AC_CHECK_HEADER(sysfs/libsysfs.h,
+ [AC_CHECK_LIB(sysfs, sysfs_open_directory, libsysfs_found=1)])
+if test $libsysfs_found != 1; then
+ AC_MSG_WARN([Compiling without libsysfs support!])
+fi...
2005 Jun 07
0
Re: [PATCH] Support module autoloading in iproute2
Okay, I added the same effective hook but using if_nametoindex()
and without the vanity comment.
2005 Jun 07
0
[ANNOUNCE] iproute2-ss050607
...route2, I have been waiting to get a CVS conversion
completed and working on other things so changes are small.
http://developer.osdl.org/dev/iproute2/download/iproute2-ss050607.tar.gz
Stephen Hemminger
* Fix ''ip link'' map to handle case where device gets autoloaded
by using if_nametoindex as fallback
* Device indices are unsigned not int.
Masahide NAKAMURA
* [ip] show timestamp when using ''-t'' option.
* [ip] remove duplicated code for expired message of xfrm.
* [ip] add "deleteall" command for xfrm;
"flush" uses kernel''s flus...
2014 Sep 17
3
[Bug 2279] New: ListenAddress option does not allow IPv6 link-local addresses
...s per RFC4007.
The specified interface needs to then result in a sin6_scope_id
assignment prior to the bind() in server_listen(). (Since the
inclusion of an interface name would result in longer strings, the code
needs to be checked that longer addresses with ListenAddress will be
accepted.) The if_nametoindex() function may be needed to convert an
interface name into its respective index which gets used as the
sin6_scope_id value.
--
You are receiving this mail because:
You are watching the assignee of the bug.
2012 Dec 10
0
[Bridge] [PATCH v5] iproute2: add mdb sub-command to bridge
...mdb_show(int argc, char **argv)
+{
+ char *filter_dev = NULL;
+
+ while (argc > 0) {
+ if (strcmp(*argv, "dev") == 0) {
+ NEXT_ARG();
+ if (filter_dev)
+ duparg("dev", *argv);
+ filter_dev = *argv;
+ }
+ argc--; argv++;
+ }
+
+ if (filter_dev) {
+ filter_index = if_nametoindex(filter_dev);
+ if (filter_index == 0) {
+ fprintf(stderr, "Cannot find device \"%s\"\n",
+ filter_dev);
+ return -1;
+ }
+ }
+
+ if (rtnl_wilddump_request(&rth, PF_BRIDGE, RTM_GETMDB) < 0) {
+ perror("Cannot send dump request");
+ exit(1);
+ }
+
+ if...
2012 Dec 05
2
[Bridge] [PATCH net-next v3] bridge: export multicast database via netlink
V3: drop debugging printk's
update selinux perm table as well
V2: drop patch 1/2, export ifindex directly
Redesign netlink attributes
Improve netlink seq check
Handle IPv6 addr as well
This patch exports bridge multicast database via netlink
message type RTM_GETMDB. Similar to fdb, but currently bridge-specific.
We may need to support modify multicast database too
2017 Jul 07
0
Wine release 2.12
...oundTouch, Spotify, Paltalk)
42597 Mouse wheel doesn't scroll in MyLifeOrganized
43123 compilation fails in dlls/d3dx9_36/tests with gcc 4.2.2
43231 Dai-Senryaku Perfect 3.0:Not draw background with GDI.
43257 winetricks -q art2kmin fails
43295 unimplemented function IPHLPAPI.DLL.if_nametoindex
----------------------------------------------------------------
Changes since 2.11:
Akihiro Sagawa (3):
tools: Also ignore STATUS_WAIT_0.
tools: Support multiple error name tokens in a line.
ntdll/tests: Add more tests if we have real VM counters.
Alex Henrie (1):
ole32...
2008 Jul 08
0
Report this to samba-technical@samba.org, ldap_initialize error
...s... no
checking for connect in -lnsl... no
checking for connect in -lsocket... yes
checking for connect in -linet... no
checking for gethostbyname... no
checking for gethostbyname in -lnsl_s... no
checking for gethostbyname in -lnsl... yes
checking for gethostbyname in -lsocket... yes
checking for if_nametoindex... no
checking for if_nametoindex in -lipv6... no
checking for socketpair... yes
checking for broken inet_ntoa... no
checking for inet_ntoa... yes
checking for inet_aton... no
checking for inet_ntop... yes
checking for inet_pton... yes
checking for getaddrinfo... yes
checking ifaddrs.h usability......