X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fnetfilter%2Fxt_time.c;h=f9c55dcd894b70e9cef74203a27f2d747d4f2d8e;hb=f3a2b29d932fbf92e133d814c4873fd15be51abc;hp=ef48bbd93573080b3489f378a4cb3755d8c20e36;hpb=408af0dab78ef4145203b849d6bfd3195f6e3ec9;p=linux-2.6 diff --git a/net/netfilter/xt_time.c b/net/netfilter/xt_time.c index ef48bbd935..f9c55dcd89 100644 --- a/net/netfilter/xt_time.c +++ b/net/netfilter/xt_time.c @@ -1,6 +1,7 @@ /* * xt_time - * Copyright © Jan Engelhardt , 2007 + * Copyright © CC Computer Consultants GmbH, 2007 + * Contact: * * based on ipt_time by Fabrice MARIE * This is a module which is used for time matching @@ -169,7 +170,7 @@ static bool xt_time_match(const struct sk_buff *skb, if (skb->tstamp.tv64 == 0) __net_timestamp((struct sk_buff *)skb); - stamp = skb->tstamp.tv64; + stamp = ktime_to_ns(skb->tstamp); do_div(stamp, NSEC_PER_SEC); if (info->flags & XT_TIME_LOCAL_TZ)