Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161138528
D54064.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
626 B
Referenced Files
None
Subscribers
None
D54064.diff
View Options
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -571,7 +571,11 @@
#ifdef _KERNEL
-void unhandled_af(int) __dead2;
+static inline __dead2 void
+unhandled_af(int af)
+{
+ panic("unhandled af %d", af);
+}
static void inline
pf_addrcpy(struct pf_addr *dst, const struct pf_addr *src, sa_family_t af)
diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c
--- a/sys/netpfil/pf/pf_ioctl.c
+++ b/sys/netpfil/pf/pf_ioctl.c
@@ -2521,12 +2521,6 @@
return (killed);
}
-void
-unhandled_af(int af)
-{
- panic("unhandled af %d", af);
-}
-
int
pf_start(void)
{
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 1, 9:38 PM (10 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34578234
Default Alt Text
D54064.diff (626 B)
Attached To
Mode
D54064: pf: make unhandled_af() inline
Attached
Detach File
Event Timeline
Log In to Comment