Re: PPP port: Code for setting gateway

2000-11-25 Thread Marcus Brinkmann
On Sat, Nov 25, 2000 at 04:31:31PM -0500, Igor Khavkine wrote: > > > > sprintf(node_name, "%s/%d", _SERVERS_SOCKET, PF_INET); > > Well, that's another segfault right there, you're trying to write > to a wild pointer. Try: > asprintf(&node_name, _SERVERS_SOCKET "%d", PF_INET); > Actually you d

Re: PPP port: Code for setting gateway

2000-11-25 Thread Igor Khavkine
On Sat, Nov 25, 2000 at 01:50:37AM -0600, Daniel E Baumann wrote: > Here is the code I wrote for setting the gateway in bundle.c, I welcome any > comments. Some of this I borrowed from fsysopts.c. > I hope this is prototype code because there is a couple of obvious blunders. > int > bundle_Set

PPP port: Code for setting gateway

2000-11-24 Thread Daniel E Baumann
Here is the code I wrote for setting the gateway in bundle.c, I welcome any comments. Some of this I borrowed from fsysopts.c. int bundle_SetRoute(struct bundle *bundle, int cmd, struct in_addr dst, struct in_addr gateway, struct in_addr mask, int bang, int ssh)