summaryrefslogtreecommitdiffstats
path: root/gatchat/ppp.h
diff options
context:
space:
mode:
authorKristen Carlson Accardi <kristen@linux.intel.com>2010-05-10 13:06:37 -0700
committerDenis Kenzior <denkenz@gmail.com>2010-05-10 16:27:15 -0500
commit125fc62526114acd373ed090edbd42a01300e2af (patch)
tree0b45feb0a6a2a05d6ebd1d724f5df073c6c09273 /gatchat/ppp.h
parentf13d5e2badcd2ca277e895990e47bb49e1df81a3 (diff)
downloadofono-125fc62526114acd373ed090edbd42a01300e2af.tar.bz2
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.h4
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));