[wireshark] qt.qpa.plugin: Cou
When I run the "wireshark" in ubuntu 20.04. I got the error message and can't execute wireshark successfully. I ALWAYS GOT THIS ERROR
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

horace papa 發表在 痞客邦 留言(0) 人氣()

tables:
==================
1)a table is something that allows you to process packets in specific ways
2)default table is the "filter" table,these "tables" have "chains" attached to them
    |
    |+filter table: default table, decide whether packet should allowed to its dest.
    |    
    |+mangle table: alter packet headers in various ways,such as changing TTL values.
    |    
    |+nat table: allows you to route packets to different hosts on NAT (Network Address         |         Translation) networks by changing the source and destination addresses of         |         packet
    |     
    |+ raw table:allows you to work with packets before the kernel starts tracking its state    

horace papa 發表在 痞客邦 留言(0) 人氣()


Automatic Variables
Suppose you are writing a pattern rule to compile a ‘.c’ file into a ‘.o’ file: how do you write the ‘cc’ command so that it operates on the right source file name? You cannot write the name in the recipe, because the name is different each time the implicit rule is applied.
What you do is use a special feature of make, the automatic variables. These variables have values computed afresh for each rule that is executed, based on the target and prerequisites of the rule. In this example, you would use ‘$@’ for the object file name and ‘$<’ for the source file name.
It’s very important that you recognize the limited scope in which automatic variable values are available: they only have values within the recipe. In particular, you cannot use them anywhere within the target list of a rule; they have no value there and will expand to the empty string. Also, they cannot be accessed directly within the prerequisite list of a rule. A common mistake is attempting to use $@ within the prerequisites list; this will not work. However, there is a special feature of GNU make, secondary expansion (see Secondary Expansion), which will allow automatic variable values to be used in prerequisite lists.
Here is a table of automatic variables:
 

$@


The file name of the target of the rule. If the target is an archive member, then ‘$@’ is the name of the archive file. In a pattern rule that has multiple targets (see Introduction to Pattern Rules), ‘$@’ is the name of whichever target caused the rule’s recipe to be run.



$%


The target member name, when the target is an archive member. See Using make to Update Archive Files. For example, if the target is foo.a(bar.o) then ‘$%’ is bar.o and ‘$@’ is foo.a. ‘$%’ is empty when the target is not an archive member.



$<


The name of the first prerequisite. If the target got its recipe from an implicit rule, this will be the first prerequisite added by the implicit rule (see Using Implicit Rules).



$?


The names of all the prerequisites that are newer than the target, with spaces between them. If the target does not exist, all prerequisites will be included. For prerequisites which are archive members, only the named member is used (see Using make to Update Archive Files).


$?’ is useful even in explicit rules when you wish to operate on only the prerequisites that have changed. For example, suppose that an archive named lib is supposed to contain copies of several object files. This rule copies just the changed object files into the archive:



lib: foo.o bar.o lose.o win.o
ar r lib $?



$^


The names of all the prerequisites, with spaces between them. For prerequisites which are archive members, only the named member is used (see Using make to Update Archive Files). A target has only one prerequisite on each other file it depends on, no matter how many times each file is listed as a prerequisite. So if you list a prerequisite more than once for a target, the value of $^ contains just one copy of the name. This list does not contain any of the order-only prerequisites; for those see the ‘$|’ variable, below.



$+


This is like ‘$^’, but prerequisites listed more than once are duplicated in the order they were listed in the makefile. This is primarily useful for use in linking commands where it is meaningful to repeat library file names in a particular order.



$|


The names of all the order-only prerequisites, with spaces between them.



$*


The stem with which an implicit rule matches (see How Patterns Match). If the target is dir/a.foo.b and the target pattern is a.%.b then the stem is dir/foo. The stem is useful for constructing names of related files.


In a static pattern rule, the stem is part of the file name that matched the ‘%’ in the target pattern.


In an explicit rule, there is no stem; so ‘$*’ cannot be determined in that way. Instead, if the target name ends with a recognized suffix (see Old-Fashioned Suffix Rules), ‘$*’ is set to the target name minus the suffix. For example, if the target name is ‘foo.c’, then ‘$*’ is set to ‘foo’, since ‘.c’ is a suffix. GNU make does this bizarre thing only for compatibility with other implementations of make. You should generally avoid using ‘$*’ except in implicit rules or static pattern rules.


If the target name in an explicit rule does not end with a recognized suffix, ‘$*’ is set to the empty string for that rule.



Of the variables listed above, four have values that are single file names, and three have values that are lists of file names. These seven have variants that get just the file’s directory name or just the file name within the directory. The variant variables’ names are formed by appending ‘D’ or ‘F’, respectively. The functions dir and notdir can be used to obtain a similar effect (see Functions for File Names). Note, however, that the ‘D’ variants all omit the trailing slash which always appears in the output of the dir function. Here is a table of the variants:
 

$(@D)


The directory part of the file name of the target, with the trailing slash removed. If the value of ‘$@’ is dir/foo.o then ‘$(@D)’ is dir. This value is . if ‘$@’ does not contain a slash.



$(@F)


The file-within-directory part of the file name of the target. If the value of ‘$@’ is dir/foo.o then ‘$(@F)’ is foo.o. ‘$(@F)’ is equivalent to ‘$(notdir $@)’.



$(*D)

 

$(*F)


The directory part and the file-within-directory part of the stem; dir and foo in this example.



$(%D)

 

$(%F)


The directory part and the file-within-directory part of the target archive member name. This makes sense only for archive member targets of the form archive(member) and is useful only when member may contain a directory name. (See Archive Members as Targets.)



$(<D)

 

$(<F)


The directory part and the file-within-directory part of the first prerequisite.



$(^D)

 

$(^F)


Lists of the directory parts and the file-within-directory parts of all prerequisites.



$(+D)

 

$(+F)


Lists of the directory parts and the file-within-directory parts of all prerequisites, including multiple instances of duplicated prerequisites.



$(?D)

 

$(?F)


Lists of the directory parts and the file-within-directory parts of all prerequisites that are newer than the target.



Note that we use a special stylistic convention when we talk about these automatic variables; we write “the value of ‘$<’”, rather than “the variable <” as we would write for ordinary variables such as objects and CFLAGS. We think this convention looks more natural in this special case. Please do not assume it has a deep significance; ‘$<’ refers to the variable named < just as ‘$(CFLAGS)’ refers to the variable named CFLAGS. You could just as well use ‘$(<)’ in place of ‘$<’.

horace papa 發表在 痞客邦 留言(0) 人氣()

if you are suffer the problem
sudo apt-get install teams

horace papa 發表在 痞客邦 留言(0) 人氣()

error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' if (BN_num_bits(key->e) > 64) ^~ scripts/Makefile.host:134: recipe for target 'tools/lib/rsa/rsa-sign.o' failed
Solution: http://git.lede-project.org/70b104f  please fix by this patch.

horace papa 發表在 痞客邦 留言(0) 人氣()

mount in Caja
the librt.so.1 share liberary missing after update or remove some ubuntu application, the below is a way to rescuse ubuntu boot up failure issue.
1.Boot from installation medium(live cd)

horace papa 發表在 痞客邦 留言(0) 人氣()



4-Way Handshake
 
46 Comments

horace papa 發表在 痞客邦 留言(0) 人氣()

https://www.shellcheck.net/
 

horace papa 發表在 痞客邦 留言(0) 人氣()

Example1
/ {
#address-cells = <0x1>; //在 root node下使用1个u32来代表address, root node use 1 u32 to present address.
#size-cells = <0x0>; // 在root node下使用0个u32来代表size, root node have 0 to present address length.
...
...
memory { // memory device
...
reg = <0x90000000>;
// 0x90000000是存取memory的address // 0x90000000 is a u32 address, no address length
...
};
...
...
}

horace papa 發表在 痞客邦 留言(0) 人氣()


https://www.booleanworld.com/depth-guide-iptables-linux-firewall/
a very good doc for understanding iptables.

horace papa 發表在 痞客邦 留言(0) 人氣()

First of all let me give you a brief on the insides of Ethernet MAC.
We have a MAC module which interacts with Physical layer and we have DMA which interacts with memory. So the Ethernet frame flow is like this
Transmit:
Memory-->DMA-->MAC-->Physical Layer
Receive:
Memory<--DMA<--MAC<--Physical Layer
Transmit and receive descriptors are basically used by DMA. In these descriptors, we  give address of  memory location from where DMA reads and writes back the Ethernet frame while transmitting and receiving respectively. Apart from memory location,  many other important parameters which  are required by DMA  to process a frame are programmed in descriptors.Once all the information is programmed, we give the control of descriptors to DMA. We can have one or many descriptors for one frame. When transmit or receive of frame is complete , DMA updates the status in descriptors and assign them back to user. Once we read status and frame data,  we again give control of descriptors back to DMA and the process continues.
It's our choice how many descriptors we want to program. The more descriptors we program...the more frames we can process in one go (high performance) but yes at the cost of more kernel resources. There is always a trade off in kernel.

horace papa 發表在 痞客邦 留言(0) 人氣()

列表中的每个会话都有一个 ID,该 ID 是从 0 开始的。按下对应的 ID 就可以进入会话。
1) run "tmux"
2)"tmux ls" list all the tmux session

horace papa 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。