Deleted Added
full compact
main.c (1591) main.c (3534)
1/*
2 * Copyright (c) 1983, 1988, 1993
3 * 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

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

197 char buf[_POSIX2_LINE_MAX];
198
199 if (cp = rindex(argv[0], '/'))
200 prog = cp + 1;
201 else
202 prog = argv[0];
203 af = AF_UNSPEC;
204
1/*
2 * Copyright (c) 1983, 1988, 1993
3 * 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

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

197 char buf[_POSIX2_LINE_MAX];
198
199 if (cp = rindex(argv[0], '/'))
200 prog = cp + 1;
201 else
202 prog = argv[0];
203 af = AF_UNSPEC;
204
205 while ((ch = getopt(argc, argv, "Aadf:ghI:iM:mN:np:rstuw:")) != EOF)
205 while ((ch = getopt(argc, argv, "Aabdf:ghI:iM:mN:np:rstuw:")) != EOF)
206 switch(ch) {
207 case 'A':
208 Aflag = 1;
209 break;
210 case 'a':
211 aflag = 1;
212 break;
206 switch(ch) {
207 case 'A':
208 Aflag = 1;
209 break;
210 case 'a':
211 aflag = 1;
212 break;
213 case 'b':
214 bflag = 1;
215 break;
213 case 'd':
214 dflag = 1;
215 break;
216 case 'f':
217 if (strcmp(optarg, "ns") == 0)
218 af = AF_NS;
219 else if (strcmp(optarg, "inet") == 0)
220 af = AF_INET;

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

494}
495
496static void
497usage()
498{
499 (void)fprintf(stderr,
500"usage: %s [-Aan] [-f address_family] [-M core] [-N system]\n", prog);
501 (void)fprintf(stderr,
216 case 'd':
217 dflag = 1;
218 break;
219 case 'f':
220 if (strcmp(optarg, "ns") == 0)
221 af = AF_NS;
222 else if (strcmp(optarg, "inet") == 0)
223 af = AF_INET;

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

497}
498
499static void
500usage()
501{
502 (void)fprintf(stderr,
503"usage: %s [-Aan] [-f address_family] [-M core] [-N system]\n", prog);
504 (void)fprintf(stderr,
502" %s [-ghimnrs] [-f address_family] [-M core] [-N system]\n", prog);
505" %s [-bdghimnrs] [-f address_family] [-M core] [-N system]\n", prog);
503 (void)fprintf(stderr,
506 (void)fprintf(stderr,
504" %s [-n] [-I interface] [-M core] [-N system] [-w wait]\n", prog);
507" %s [-bdn] [-I interface] [-M core] [-N system] [-w wait]\n", prog);
505 (void)fprintf(stderr,
506" %s [-M core] [-N system] [-p protocol]\n", prog);
507 exit(1);
508}
508 (void)fprintf(stderr,
509" %s [-M core] [-N system] [-p protocol]\n", prog);
510 exit(1);
511}