Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arne Øslebø
mapi
Commits
d79f891f
Commit
d79f891f
authored
Sep 03, 2007
by
Browse files
publishing burst.h
git-svn-id:
file:///home/svn/mapi/trunk@1306
8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent
10708988
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/stdflib/Makefile.am
View file @
d79f891f
...
...
@@ -38,4 +38,4 @@ tobuffer_all.c \
to_tcpdump.c
# these headers will be installd in $prefix/include/mapi
pkginclude_HEADERS
=
bucket.h dist.h hashsamp.h pktinfo.h res2file.h sample.h stats.h
pkginclude_HEADERS
=
bucket.h
burst.h
dist.h hashsamp.h pktinfo.h res2file.h sample.h stats.h
src/stdflib/burst.h
View file @
d79f891f
#ifndef __BURST_H__
#define __BURST_H__
// Interface dependencies -----------------------------------------------------
// End interface dependencies -------------------------------------------------
typedef
struct
burst_category
{
unsigned
long
bytes
;
unsigned
long
packets
;
...
...
@@ -12,5 +8,3 @@ typedef struct burst_category {
}
burst_category_t
;
#endif
/* end of burst.h */
tests/test_burst.c
View file @
d79f891f
...
...
@@ -3,15 +3,10 @@
#include <unistd.h>
#include <sys/time.h>
#include <mapi.h>
#include "mapi/burst.h"
#include <string.h>
typedef
struct
burst
{
unsigned
long
bytes
;
unsigned
long
packets
;
unsigned
long
bursts
;
}
burst_category_t
;
int
main
(
int
argc
,
char
*
argv
[])
{
int
fd
;
int
fid
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment