Commit a94cbbf4 authored by Aditya Mahendrakar's avatar Aditya Mahendrakar Committed by yonghong-song

fix typos, link reference and package versions for rhel (#2092)

fix typos, link reference and package versions for rhel 
parent 61c063ae
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
- [Arch](#arch---aur) - [Arch](#arch---aur)
- [Gentoo](#gentoo---portage) - [Gentoo](#gentoo---portage)
- [openSUSE](#opensuse---binary) - [openSUSE](#opensuse---binary)
- [RHEL](#redhat---binary) - [RHEL](#rhel---binary)
* [Source](#source) * [Source](#source)
- [Debian](#debian---source) - [Debian](#debian---source)
- [Ubuntu](#ubuntu---source) - [Ubuntu](#ubuntu---source)
...@@ -148,7 +148,7 @@ sudo zypper in bcc-tools bcc-examples ...@@ -148,7 +148,7 @@ sudo zypper in bcc-tools bcc-examples
## RHEL - Binary ## RHEL - Binary
For Redhat 7.6 (Beta) bcc is already included in the official yum repository as bcc-tools. As part of the install the following dependencies are installed: bcc.x86_64 0:0.6.0-3.el7 ,llvm-private.x86_64 0:6.0.1-2.el7 ,python-bcc.x86_64 0:0.6.0-3.el7,python-netaddr.noarch 0:0.7.5-9.el7 For RHEL 7.6, bcc is already included in the official yum repository as bcc-tools. As part of the install, the following dependencies are installed: bcc.x86_64 0:0.6.1-2.el7 ,llvm-private.x86_64 0:6.0.1-2.el7 ,python-bcc.x86_64 0:0.6.1-2.el7,python-netaddr.noarch 0:0.7.5-9.el7
``` ```
yum install bcc-tools yum install bcc-tools
......
...@@ -83,7 +83,7 @@ int http_filter(struct __sk_buff *skb) { ...@@ -83,7 +83,7 @@ int http_filter(struct __sk_buff *skb) {
//e.g. tcp->offset = 5 ; TCP Header Length = 5 x 4 byte = 20 byte //e.g. tcp->offset = 5 ; TCP Header Length = 5 x 4 byte = 20 byte
tcp_header_length = tcp->offset << 2; //SHL 2 -> *4 multiply tcp_header_length = tcp->offset << 2; //SHL 2 -> *4 multiply
//calculate patload offset and length //calculate payload offset and length
payload_offset = ETH_HLEN + ip_header_length + tcp_header_length; payload_offset = ETH_HLEN + ip_header_length + tcp_header_length;
payload_length = ip->tlen - ip_header_length - tcp_header_length; payload_length = ip->tlen - ip_header_length - tcp_header_length;
......
...@@ -54,7 +54,7 @@ int http_filter(struct __sk_buff *skb) { ...@@ -54,7 +54,7 @@ int http_filter(struct __sk_buff *skb) {
//e.g. tcp->offset = 5 ; TCP Header Length = 5 x 4 byte = 20 byte //e.g. tcp->offset = 5 ; TCP Header Length = 5 x 4 byte = 20 byte
tcp_header_length = tcp->offset << 2; //SHL 2 -> *4 multiply tcp_header_length = tcp->offset << 2; //SHL 2 -> *4 multiply
//calculate patload offset and length //calculate payload offset and length
payload_offset = ETH_HLEN + ip_header_length + tcp_header_length; payload_offset = ETH_HLEN + ip_header_length + tcp_header_length;
payload_length = ip->tlen - ip_header_length - tcp_header_length; payload_length = ip->tlen - ip_header_length - tcp_header_length;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment