Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
bd1efda4
Commit
bd1efda4
authored
Feb 29, 2016
by
Brenden Blanco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add v6 headers to proto.h
Signed-off-by:
Brenden Blanco
<
bblanco@plumgrid.com
>
parent
e00be4a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
src/cc/export/proto.h
src/cc/export/proto.h
+31
-0
No files found.
src/cc/export/proto.h
View file @
bd1efda4
...
...
@@ -61,6 +61,37 @@ struct ip_t {
unsigned int dst; // byte 16
} BPF_PACKET_HEADER;
struct icmp_t {
unsigned char type;
unsigned char code;
unsigned short checksum;
} BPF_PACKET_HEADER;
struct ip6_t {
unsigned int ver:4;
unsigned int priority:8;
unsigned int flow_label:20;
unsigned short payload_len;
unsigned char next_header;
unsigned char hop_limit;
unsigned long long src_hi;
unsigned long long src_lo;
unsigned long long dst_hi;
unsigned long long dst_lo;
} BPF_PACKET_HEADER;
struct ip6_opt_t {
unsigned char next_header;
unsigned char ext_len;
unsigned char pad[6];
} BPF_PACKET_HEADER;
struct icmp6_t {
unsigned char type;
unsigned char code;
unsigned short checksum;
} BPF_PACKET_HEADER;
struct udp_t {
unsigned short sport;
unsigned short dport;
...
...
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