================
1207/*
1208 * Combined all pending IP fragments on the socket as one IP datagram
1209 * and push them out.
1210 */
1211int ip_push_pending_frames(struct sock *sk)
1212{
1288 /* Netfilter gets whole the not fragmented skb. */
1289 err = ip_local_out(skb);
================
147/**
148 * nf_hook_thresh - call a netfilter hook
149 *
150 * Returns 1 if the hook has allowed the packet to pass. The function
151 * okfn must be invoked by the caller in this case. Any other return
152 * value indicates the packet has been consumed by the hook.
153 */
154static inline int nf_hook_thresh(int pf, unsigned int hook,
155 struct sk_buff *skb,
156 struct net_device *indev,
157 struct net_device *outdev,
158 int (*okfn)(struct sk_buff *), int thresh,
159 int cond)
160{
161 if (!cond)
162 return 1;
163#ifndef CONFIG_NETFILTER_DEBUG
164 if (list_empty(&nf_hooks[pf][hook]))
165 return 1;
166#endif
167 return nf_hook_slow(pf, hook, skb, indev, outdev, okfn, thresh);
168}
169
170static inline int nf_hook(int pf, unsigned int hook, struct sk_buff *skb,
171 struct net_device *indev, struct net_device *outdev,
172 int (*okfn)(struct sk_buff *))
173{
174 return nf_hook_thresh(pf, hook, skb, indev, outdev, okfn, INT_MIN, 1);
175}作者: haofish 时间: 2008-09-24 19:56
tcp/ip详解 系列都有讲到