diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/trafshow/Portfile trafshow/Portfile
old
|
new
|
|
1 | 1 | PortSystem 1.0 |
2 | 2 | name trafshow |
3 | 3 | version 5.2.3 |
4 | | revision 2 |
| 4 | revision 3 |
5 | 5 | categories net |
6 | 6 | maintainers nomaintainer |
7 | 7 | description continuous network traffic display |
diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/net/trafshow/files/patch-trafshow.c trafshow/files/patch-trafshow.c
old
|
new
|
|
1 | | --- trafshow.c.org 2006-03-14 10:58:07.000000000 +0300 |
2 | | +++ trafshow.c 2006-05-15 20:50:43.000000000 +0400 |
| 1 | --- trafshow.c.orig 2021-05-11 16:50:08.000000000 +0930 |
| 2 | +++ trafshow.c 2021-05-11 16:52:05.000000000 +0930 |
| 3 | @@ -58,7 +58,7 @@ |
| 4 | static void vers(); |
| 5 | static void usage(); |
| 6 | static pcap_if_t *pcap_matchdev(pcap_if_t *dp, const char *name); |
| 7 | -static int pcap_init(PCAP_HANDLER **ph_list, pcap_if_t *dp); |
| 8 | +static int pcap_doinit(PCAP_HANDLER **ph_list, pcap_if_t *dp); |
| 9 | static void *pcap_feed(void *arg); /* PCAP_HANDLER *ph */ |
| 10 | #ifdef HAVE_PCAP_GET_SELECTABLE_FD |
| 11 | static void *pcap_feed2(void *arg); /* PCAP_HANDLER *ph */ |
| 12 | @@ -172,7 +172,7 @@ |
| 13 | } |
| 14 | |
| 15 | /* initialize list of pcap handlers */ |
| 16 | - if ((op = pcap_init(&ph_list, dev_list)) < 1) { |
| 17 | + if ((op = pcap_doinit(&ph_list, dev_list)) < 1) { |
| 18 | fprintf(stderr, "No packet capture device available (no permission?)\n"); |
| 19 | exit(1); |
| 20 | } |
| 21 | @@ -298,7 +298,7 @@ |
| 22 | } |
| 23 | |
| 24 | static int |
| 25 | -pcap_init(ph_list, dp) |
| 26 | +pcap_doinit(ph_list, dp) |
| 27 | PCAP_HANDLER **ph_list; |
| 28 | pcap_if_t *dp; |
| 29 | { |
3 | 30 | @@ -862,7 +862,7 @@ |
4 | 31 | -n Don't convert numeric values to names\n\ |
5 | 32 | -b To place a backflow near to the main stream\n\ |