diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-26 21:07:11 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-11-26 21:07:11 +0100 |
commit | e976df1b5bf333a9af10559fbe1de3ab6537ca64 (patch) | |
tree | 8a1eece41c0b8b337a91079809411e9603f34248 | |
parent | 4e3e28e91632640490642108f7b89824e2b51b4f (diff) |
mtp: Be able to set the spare bits in the network indicator
-rw-r--r-- | include/mtp_data.h | 1 | ||||
-rw-r--r-- | src/mtp_layer3.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/mtp_data.h b/include/mtp_data.h index 3096cb6..14c2037 100644 --- a/include/mtp_data.h +++ b/include/mtp_data.h @@ -39,6 +39,7 @@ struct mtp_link { /* routing info.. */ int dpc, opc; int ni; + int spare; /* internal state */ /* the MTP1 link is up */ diff --git a/src/mtp_layer3.c b/src/mtp_layer3.c index 817b51c..a7afde6 100644 --- a/src/mtp_layer3.c +++ b/src/mtp_layer3.c @@ -46,6 +46,7 @@ static struct msgb *mtp_msg_alloc(struct mtp_link *link) hdr = (struct mtp_level_3_hdr *) msg->l2h; hdr->addr = MTP_ADDR(0x0, link->dpc, link->opc); hdr->ni = link->ni; + hdr->spare = link->spare; return msg; } |