Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149887188
D46652.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D46652.diff
View Options
diff --git a/sys/netpfil/pf/pf_norm.c b/sys/netpfil/pf/pf_norm.c
--- a/sys/netpfil/pf/pf_norm.c
+++ b/sys/netpfil/pf/pf_norm.c
@@ -151,10 +151,10 @@
struct pf_frent *, u_short *);
static struct mbuf *pf_join_fragment(struct pf_fragment *);
#ifdef INET
-static int pf_reassemble(struct mbuf **, struct ip *, int, u_short *);
+static int pf_reassemble(struct mbuf **, int, u_short *);
#endif /* INET */
#ifdef INET6
-static int pf_reassemble6(struct mbuf **, struct ip6_hdr *,
+static int pf_reassemble6(struct mbuf **,
struct ip6_frag *, uint16_t, uint16_t, u_short *);
#endif /* INET6 */
@@ -741,9 +741,10 @@
#ifdef INET
static int
-pf_reassemble(struct mbuf **m0, struct ip *ip, int dir, u_short *reason)
+pf_reassemble(struct mbuf **m0, int dir, u_short *reason)
{
struct mbuf *m = *m0;
+ struct ip *ip = mtod(m, struct ip *);
struct pf_frent *frent;
struct pf_fragment *frag;
struct pf_fragment_cmp key;
@@ -814,10 +815,11 @@
#ifdef INET6
static int
-pf_reassemble6(struct mbuf **m0, struct ip6_hdr *ip6, struct ip6_frag *fraghdr,
+pf_reassemble6(struct mbuf **m0, struct ip6_frag *fraghdr,
uint16_t hdrlen, uint16_t extoff, u_short *reason)
{
struct mbuf *m = *m0;
+ struct ip6_hdr *ip6 = mtod(m, struct ip6_hdr *);
struct pf_frent *frent;
struct pf_fragment *frag;
struct pf_fragment_cmp key;
@@ -1170,7 +1172,7 @@
* Might return a completely reassembled mbuf, or NULL */
PF_FRAG_LOCK();
DPFPRINTF(("reass frag %d @ %d-%d\n", h->ip_id, fragoff, max));
- verdict = pf_reassemble(m0, h, pd->dir, reason);
+ verdict = pf_reassemble(m0, pd->dir, reason);
PF_FRAG_UNLOCK();
if (verdict != PF_PASS)
@@ -1360,7 +1362,7 @@
off += sizeof(frag);
/* Returns PF_DROP or *m0 is NULL or completely reassembled mbuf. */
- if (pf_reassemble6(m0, h, &frag, off, extoff, reason) != PF_PASS)
+ if (pf_reassemble6(m0, &frag, off, extoff, reason) != PF_PASS)
return (PF_DROP);
m = *m0;
if (m == NULL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 28, 9:25 PM (18 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30494349
Default Alt Text
D46652.diff (1 KB)
Attached To
Mode
D46652: pf: remove ip(6) header argument from pf_reassemble(6)()
Attached
Detach File
Event Timeline
Log In to Comment