* [Bridge] [PATCH] Allow bridge-utils to run when no TCP/IP is available
@ 2007-10-29 12:08 Alon Bar-Lev
0 siblings, 0 replies; only message in thread
From: Alon Bar-Lev @ 2007-10-29 12:08 UTC (permalink / raw)
To: Stephen Hemminger, bridge
This simple patch create AF_LOCAL socket instead of AF_INET so if TCP/IP
is not linked into kernel it still works.
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
---
diff -urNp bridge-utils-1.2.org/libbridge/libbridge_init.c bridge-utils-1.2/libbridge/libbridge_init.c
--- bridge-utils-1.2.org/libbridge/libbridge_init.c 2006-09-09 08:30:31.000000000 +0300
+++ bridge-utils-1.2/libbridge/libbridge_init.c 2007-10-30 05:11:10.000000000 +0200
@@ -32,7 +32,7 @@ int br_socket_fd = -1;
int br_init(void)
{
- if ((br_socket_fd = socket(AF_INET, SOCK_STREAM, 0)) < 0)
+ if ((br_socket_fd = socket(AF_LOCAL, SOCK_STREAM, 0)) < 0)
return errno;
return 0;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-10-29 12:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-29 12:08 [Bridge] [PATCH] Allow bridge-utils to run when no TCP/IP is available Alon Bar-Lev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox