diff options
author | Kristen Carlson Accardi <kristen@linux.intel.com> | 2010-05-10 13:06:37 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-05-10 16:27:15 -0500 |
commit | 125fc62526114acd373ed090edbd42a01300e2af (patch) | |
tree | 0b45feb0a6a2a05d6ebd1d724f5df073c6c09273 /gatchat/ppp.h | |
parent | f13d5e2badcd2ca277e895990e47bb49e1df81a3 (diff) | |
download | ofono-125fc62526114acd373ed090edbd42a01300e2af.tar.gz |
ppp: set address and control field
Before sending to hdlc, set the address and control field.
Fix hardcode of ppp header size.
Diffstat (limited to 'gatchat/ppp.h')
-rw-r--r-- | gatchat/ppp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gatchat/ppp.h b/gatchat/ppp.h index 41cf50ae..e8724961 100644 --- a/gatchat/ppp.h +++ b/gatchat/ppp.h @@ -26,11 +26,15 @@ #define IPCP_PROTO 0x8021 #define PPP_IP_PROTO 0x0021 #define MD5 5 +#define PPP_ADDR_FIELD 0xff +#define PPP_CTRL 0x03 struct ppp_chap; struct ppp_net; struct ppp_header { + guint8 address; + guint8 control; guint16 proto; guint8 info[0]; } __attribute__((packed)); |