diff options
Diffstat (limited to 'sys/netinet/libalias/alias_pptp.c')
-rw-r--r-- | sys/netinet/libalias/alias_pptp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netinet/libalias/alias_pptp.c b/sys/netinet/libalias/alias_pptp.c index 5df60cb..24bce3e 100644 --- a/sys/netinet/libalias/alias_pptp.c +++ b/sys/netinet/libalias/alias_pptp.c @@ -338,9 +338,7 @@ AliasHandlePptpGreOut(struct libalias *la, struct ip *pip) /* Change source IP address. */ DifferentialChecksum(&pip->ip_sum, - (u_short *) & alias_addr, - (u_short *) & pip->ip_src, - 2); + &alias_addr, &pip->ip_src, 2); pip->ip_src = alias_addr; } return (0); @@ -368,9 +366,7 @@ AliasHandlePptpGreIn(struct libalias *la, struct ip *pip) /* Restore original IP address. */ DifferentialChecksum(&pip->ip_sum, - (u_short *) & src_addr, - (u_short *) & pip->ip_dst, - 2); + &src_addr, &pip->ip_dst, 2); pip->ip_dst = src_addr; } return (0); |