Deleted Added
full compact
1c1
< /* $OpenBSD: netcat.c,v 1.95 2010/02/27 00:58:56 nicm Exp $ */
---
> /* $OpenBSD: netcat.c,v 1.98 2010/07/03 04:44:51 guenther Exp $ */
28c28
< * $FreeBSD: head/contrib/netcat/netcat.c 206689 2010-04-15 23:21:24Z delphij $
---
> * $FreeBSD: head/contrib/netcat/netcat.c 214047 2010-10-19 00:01:53Z delphij $
96c96
< u_int rdomain;
---
> u_int rtableid;
142d141
< rdomain = 0;
238c237
< rdomain = (unsigned int)strtonum(optarg, 0,
---
> rtableid = (unsigned int)strtonum(optarg, 0,
241c240
< errx(1, "FIB %s: %s", errstr, optarg);
---
> errx(1, "rtable %s: %s", errstr, optarg);
374c373
< char buf[8192];
---
> char buf[16384];
378c377
< plen = jflag ? 8192 : 1024;
---
> plen = jflag ? 16384 : 2048;
564,565c563,564
< if (rdomain) {
< if (setfib(rdomain) == -1)
---
> if (rtableid) {
> if (setfib(rtableid) == -1)
637,638c636,637
< if (rdomain) {
< if (setfib(rdomain) == -1)
---
> if (rtableid) {
> if (setfib(rtableid) == -1)
683c682
< unsigned char buf[8192];
---
> unsigned char buf[16384];
688c687
< plen = jflag ? 8192 : 1024;
---
> plen = jflag ? 16384 : 2048;
830c829
< portlist[0] = calloc(1, PORT_MAX_LEN);
---
> portlist[0] = strdup(p);
833d831
< portlist[0] = p;
950c948
< \t-V fib Specify alternate routing table (FIB)\n\
---
> \t-V rtable Specify alternate routing table\n\
995c993
< "\t [-V fib] [-w timeout] [-X proxy_protocol]\n"
---
> "\t [-V rtable] [-w timeout] [-X proxy_protocol]\n"