#include #include "screen.h" WINDOW *screen_init(bool israw) { WINDOW *screen = initscr(); if (israw) raw(); noecho(); cbreak(); nodelay(screen, TRUE); keypad(stdscr, TRUE); refresh(); wrefresh(screen); return screen; } void screen_end(void) { endwin(); } Atom feed' href='https://git.distanz.ch/cgit.cgi/linux/net-next.git/atom/?h=nds-private-remove' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiping Zhang <liping.zhang@spreadtrum.com>2016-08-13 22:35:36 +0800
committerPablo Neira Ayuso <pablo@netfilter.org>2016-08-18 01:20:52 +0200
commit92e47ba8839bacc185db89f3b11cd8036193e6a9 (patch)
tree3175f4f3d8edd94dfbe7a828615073b260531a92
parentadf0516845bcd0e626323c858ece28ee58c74455 (diff)
netfilter: conntrack: simplify the code by using nf_conntrack_get_ht
Since commit 64b87639c9cb ("netfilter: conntrack: fix race between nf_conntrack proc read and hash resize") introduce the nf_conntrack_get_ht, so there's no need to check nf_conntrack_generation again and again to get the hash table and hash size. And convert nf_conntrack_get_ht to inline function here. Suggested-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Liping Zhang <liping.zhang@spreadtrum.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>