diff options
author | xebd <xeb@mail.ru> | 2017-12-05 12:55:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-05 12:55:21 +0300 |
commit | 7ea2648488d682af8a50dbf22c498d5889667fb8 (patch) | |
tree | 9c6d5446e106f0853e2650246c8bbbc80e56416f /accel-pppd/extra | |
parent | b2ee19d80118f71afe966a938b9ad9e74d050f29 (diff) | |
parent | 504b093a9878e758af1397aa82eda44b1bf0f608 (diff) | |
download | accel-ppp-7ea2648488d682af8a50dbf22c498d5889667fb8.tar.gz accel-ppp-7ea2648488d682af8a50dbf22c498d5889667fb8.zip |
Merge pull request #20 from themiron/ipv6-nd-fixes
ipv6: nd: add non-/64 prefixes & AdvOnLinkFlag option support
Diffstat (limited to 'accel-pppd/extra')
-rw-r--r-- | accel-pppd/extra/pppd_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/extra/pppd_compat.c b/accel-pppd/extra/pppd_compat.c index 58581899..0ed88368 100644 --- a/accel-pppd/extra/pppd_compat.c +++ b/accel-pppd/extra/pppd_compat.c @@ -582,7 +582,7 @@ static void build_addr(struct ipv6db_addr_t *a, uint64_t intf_id, struct in6_add if (a->prefix_len <= 64) *(uint64_t *)(addr->s6_addr + 8) = intf_id; else - *(uint64_t *)(addr->s6_addr + 8) |= intf_id & ((1 << (128 - a->prefix_len)) - 1); + *(uint64_t *)(addr->s6_addr + 8) |= intf_id & htobe64((1 << (128 - a->prefix_len)) - 1); } static void fill_env(char **env, char *mem, struct pppd_compat_pd *pd) |