Content-Type: multipart/alternative; boundary="------------090500010505080701040605" --------------090500010505080701040605 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Linda See attachment On 6/26/2011 5:40 PM, James Czyzak wrote: > Hi Linda > This is the change I was telling you about where I needed the alarm to > be long enough for tcp retransmission and timeouts to occur when the > packets are being dropped. > > Signed-off-by James Czyzak > > > diff --git a/audit/utils/bin/do_accept.c b/audit/utils/bin/do_accept.c > index 8fe8dd0..f96ffa2 100644 > --- a/audit/utils/bin/do_accept.c > +++ b/audit/utils/bin/do_accept.c > @@ -32,14 +32,17 @@ int main(int argc, char **argv) > int sock; > int bool_true = 1; > > - if (argc != 3) { > - fprintf(stderr, "Usage:\n%s ipv4|ipv6 \n", argv[0]); > + if (argc < 3 || argc > 4) { > + fprintf(stderr, "Usage:\n%s ipv4|ipv6 \n", argv[0]); > return TEST_ERROR; > } > > signal(SIGALRM, sig_handler); > siginterrupt(SIGALRM, 1); > - alarm(ALARM_TIMER); > + if (argc == 4) { > + alarm(atoi(argv[3])); > + } else > + alarm(ALARM_TIMER); > > memset(&sock_addr, 0, sizeof(sock_addr)); > if (strcasecmp(argv[1], "ipv4") == 0) { > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > > > _______________________________________________ > Audit-test-developer mailing list > Audit-test-developer@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/audit-test-developer --------------090500010505080701040605 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Linda

See attachment

On 6/26/2011 5:40 PM, James Czyzak wrote:
Hi Linda
This is the change I was telling you about where I needed the alarm to be long enough for tcp retransmission and timeouts to occur when the packets are being dropped.

Signed-off-by James Czyzak <czyzak2@linux.vnet.ibm.com>

diff --git a/audit/utils/bin/do_accept.c b/audit/utils/bin/do_accept.c
index 8fe8dd0..f96ffa2 100644
--- a/audit/utils/bin/do_accept.c
+++ b/audit/utils/bin/do_accept.c
@@ -32,14 +32,17 @@ int main(int argc, char **argv)
   int sock;
   int bool_true = 1;

-  if (argc != 3) {
-    fprintf(stderr, "Usage:\n%s ipv4|ipv6 <port>\n", argv[0]);
+  if (argc < 3 || argc > 4) {
+    fprintf(stderr, "Usage:\n%s ipv4|ipv6 <port> <alarmv>\n", argv[0]);
     return TEST_ERROR;
   }

   signal(SIGALRM, sig_handler);
   siginterrupt(SIGALRM, 1);
-  alarm(ALARM_TIMER);
+  if (argc == 4) {
+     alarm(atoi(argv[3]));
+  } else
+      alarm(ALARM_TIMER);

   memset(&sock_addr, 0, sizeof(sock_addr));
   if (strcasecmp(argv[1], "ipv4") == 0) {

------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________ Audit-test-developer mailing list Audit-test-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/audit-test-developer

--------------090500010505080701040605--