tcpdump.c (277638) | tcpdump.c (282436) |
---|---|
1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000 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: (1) source code distributions 7 * retain the above copyright notice and this paragraph in its entirety, (2) 8 * distributions including binary code include the above copyright notice and --- 17 unchanged lines hidden (view full) --- 26 */ 27 28#ifndef lint 29static const char copyright[] _U_ = 30 "@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000\n\ 31The Regents of the University of California. All rights reserved.\n"; 32#endif 33 | 1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000 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: (1) source code distributions 7 * retain the above copyright notice and this paragraph in its entirety, (2) 8 * distributions including binary code include the above copyright notice and --- 17 unchanged lines hidden (view full) --- 26 */ 27 28#ifndef lint 29static const char copyright[] _U_ = 30 "@(#) Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000\n\ 31The Regents of the University of California. All rights reserved.\n"; 32#endif 33 |
34/* $FreeBSD: head/contrib/tcpdump/tcpdump.c 277638 2015-01-24 06:06:46Z delphij $ */ | 34/* $FreeBSD: head/contrib/tcpdump/tcpdump.c 282436 2015-05-04 21:44:51Z brooks $ */ |
35 36/* 37 * tcpdump - monitor tcp/ip traffic on an ethernet. 38 * 39 * First written in 1987 by Van Jacobson, Lawrence Berkeley Laboratory. 40 * Mercilessly hacked and occasionally improved since then via the 41 * combined efforts of Van, Steve McCanne and Craig Leres of LBL. 42 */ --- 1873 unchanged lines hidden (view full) --- 1916 cansandbox = (VFileName == NULL && zflag == NULL); 1917#ifdef HAVE_CAPSICUM 1918 cansandbox = (cansandbox && (nflag || capdns != NULL)); 1919#else 1920 cansandbox = (cansandbox && nflag); 1921#endif 1922 if (cansandbox && cap_enter() < 0 && errno != ENOSYS) 1923 error("unable to enter the capability mode"); | 35 36/* 37 * tcpdump - monitor tcp/ip traffic on an ethernet. 38 * 39 * First written in 1987 by Van Jacobson, Lawrence Berkeley Laboratory. 40 * Mercilessly hacked and occasionally improved since then via the 41 * combined efforts of Van, Steve McCanne and Craig Leres of LBL. 42 */ --- 1873 unchanged lines hidden (view full) --- 1916 cansandbox = (VFileName == NULL && zflag == NULL); 1917#ifdef HAVE_CAPSICUM 1918 cansandbox = (cansandbox && (nflag || capdns != NULL)); 1919#else 1920 cansandbox = (cansandbox && nflag); 1921#endif 1922 if (cansandbox && cap_enter() < 0 && errno != ENOSYS) 1923 error("unable to enter the capability mode"); |
1924 if (cap_sandboxed()) 1925 fprintf(stderr, "capability mode sandbox enabled\n"); | |
1926#endif /* __FreeBSD__ */ 1927 1928 do { 1929 status = pcap_loop(pd, cnt, callback, pcap_userdata); 1930 if (WFileName == NULL) { 1931 /* 1932 * We're printing packets. Flush the printed output, 1933 * so it doesn't get intermingled with error output. --- 710 unchanged lines hidden --- | 1924#endif /* __FreeBSD__ */ 1925 1926 do { 1927 status = pcap_loop(pd, cnt, callback, pcap_userdata); 1928 if (WFileName == NULL) { 1929 /* 1930 * We're printing packets. Flush the printed output, 1931 * so it doesn't get intermingled with error output. --- 710 unchanged lines hidden --- |