]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pptp: Refactor the struct and macros of PPTP codes
authorGao Feng <fgao@ikuai8.com>
Fri, 12 Aug 2016 16:30:48 +0000 (00:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Aug 2016 17:55:53 +0000 (10:55 -0700)
commit03459345bc00da70a35fa39bcfcf13d779097074
treec9db9f4cd4b85de2e4df5008d2decfd96c568ca4
parentcfad65c7fa9e77c27025eb5c2098cfbd4d445eab
pptp: Refactor the struct and macros of PPTP codes

1. Use struct gre_base_hdr directly in pptp_gre_header instead of
duplicated members;
2. Use existing macros like GRE_KEY, GRE_SEQ, and so on instead of
duplicated macros defined by PPTP;
3. Add new macros like GRE_IS_ACK/SEQ and so on instead of
PPTP_GRE_IS_A/S and so on;

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Reviewed-by: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp/pptp.c
include/net/pptp.h
include/uapi/linux/if_tunnel.h