Deleted Added
full compact
rtquery.c (20342) rtquery.c (20609)
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 92 unchanged lines hidden (view full) ---

101static int out(char *);
102static void trace_loop(char *argv[]);
103static void query_loop(char *argv[], int);
104static int getnet(char *, struct netinfo *);
105static u_int std_mask(u_int);
106static int parse_quote(char **, char *, char *, char *, int);
107
108
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 92 unchanged lines hidden (view full) ---

101static int out(char *);
102static void trace_loop(char *argv[]);
103static void query_loop(char *argv[], int);
104static int getnet(char *, struct netinfo *);
105static u_int std_mask(u_int);
106static int parse_quote(char **, char *, char *, char *, int);
107
108
109int
109void
110main(int argc,
111 char *argv[])
112{
113 int ch, bsize;
114 char *p, *options, *value, delim;
115
116 OMSG.rip_nets[0].n_dst = RIP_DEFAULT;
117 OMSG.rip_nets[0].n_family = RIP_AF_UNSPEC;

--- 121 unchanged lines hidden (view full) ---

239 default:
240 goto usage;
241 }
242 argv += optind;
243 argc -= optind;
244 if ((not_trace && trace) || argc == 0) {
245usage: fprintf(stderr, "%s: [-np1v] [-r tgt_rt] [-w wtime]"
246 " [-a type=passwd] host1 [host2 ...]\n"
110main(int argc,
111 char *argv[])
112{
113 int ch, bsize;
114 char *p, *options, *value, delim;
115
116 OMSG.rip_nets[0].n_dst = RIP_DEFAULT;
117 OMSG.rip_nets[0].n_family = RIP_AF_UNSPEC;

--- 121 unchanged lines hidden (view full) ---

239 default:
240 goto usage;
241 }
242 argv += optind;
243 argc -= optind;
244 if ((not_trace && trace) || argc == 0) {
245usage: fprintf(stderr, "%s: [-np1v] [-r tgt_rt] [-w wtime]"
246 " [-a type=passwd] host1 [host2 ...]\n"
247 "or\t-t {on=filename|more|off|on=dump/../table}"
247 "or\t-t {on=filename|more|off|dump}"
248 " host1 [host2 ...]\n",
249 pgmname);
250 exit(1);
251 }
252
253 s = socket(AF_INET, SOCK_DGRAM, 0);
254 if (s < 0) {
255 perror("socket");

--- 594 unchanged lines hidden ---
248 " host1 [host2 ...]\n",
249 pgmname);
250 exit(1);
251 }
252
253 s = socket(AF_INET, SOCK_DGRAM, 0);
254 if (s < 0) {
255 perror("socket");

--- 594 unchanged lines hidden ---