ip_fw.h (9066356ba15d164bc03d8aa33479912b94eb3ac6) | ip_fw.h (b090e4ce1fdb46e8611694a6aff35b2f130d4763) |
---|---|
1/*- 2 * Copyright (c) 2002 Luigi Rizzo, Universita` di Pisa 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 257 unchanged lines hidden (view full) --- 266 union { 267 struct in_addr ip; 268 int glob; 269 } p; 270 char name[IFNAMSIZ]; 271} ipfw_insn_if; 272 273/* | 1/*- 2 * Copyright (c) 2002 Luigi Rizzo, Universita` di Pisa 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 257 unchanged lines hidden (view full) --- 266 union { 267 struct in_addr ip; 268 int glob; 269 } p; 270 char name[IFNAMSIZ]; 271} ipfw_insn_if; 272 273/* |
274 * This is used for pipe and queue actions, which need to store 275 * a single pointer (which can have different size on different 276 * architectures. 277 * Note that, because of previous instructions, pipe_ptr might 278 * be unaligned in the overall structure, so it needs to be 279 * manipulated with care. 280 */ 281typedef struct _ipfw_insn_pipe { 282 ipfw_insn o; 283 void *pipe_ptr; /* XXX */ 284} ipfw_insn_pipe; 285 286/* | |
287 * This is used for storing an altq queue id number. 288 */ 289typedef struct _ipfw_insn_altq { 290 ipfw_insn o; 291 u_int32_t qid; 292} ipfw_insn_altq; 293 294/* --- 246 unchanged lines hidden (view full) --- 541int ipfw_check_in(void *, struct mbuf **, struct ifnet *, int, struct inpcb *inp); 542int ipfw_check_out(void *, struct mbuf **, struct ifnet *, int, struct inpcb *inp); 543 544int ipfw_chk(struct ip_fw_args *); 545 546int ipfw_init(void); 547void ipfw_destroy(void); 548 | 274 * This is used for storing an altq queue id number. 275 */ 276typedef struct _ipfw_insn_altq { 277 ipfw_insn o; 278 u_int32_t qid; 279} ipfw_insn_altq; 280 281/* --- 246 unchanged lines hidden (view full) --- 528int ipfw_check_in(void *, struct mbuf **, struct ifnet *, int, struct inpcb *inp); 529int ipfw_check_out(void *, struct mbuf **, struct ifnet *, int, struct inpcb *inp); 530 531int ipfw_chk(struct ip_fw_args *); 532 533int ipfw_init(void); 534void ipfw_destroy(void); 535 |
549void flush_pipe_ptrs(struct dn_flow_set *match); /* used by dummynet */ 550 | |
551typedef int ip_fw_ctl_t(struct sockopt *); 552extern ip_fw_ctl_t *ip_fw_ctl_ptr; 553extern int fw_one_pass; 554extern int fw_enable; 555 556/* For kernel ipfw_ether and ipfw_bridge. */ 557typedef int ip_fw_chk_t(struct ip_fw_args *args); 558extern ip_fw_chk_t *ip_fw_chk_ptr; 559#define IPFW_LOADED (ip_fw_chk_ptr != NULL) 560 561#endif /* _KERNEL */ 562#endif /* _IPFW2_H */ | 536typedef int ip_fw_ctl_t(struct sockopt *); 537extern ip_fw_ctl_t *ip_fw_ctl_ptr; 538extern int fw_one_pass; 539extern int fw_enable; 540 541/* For kernel ipfw_ether and ipfw_bridge. */ 542typedef int ip_fw_chk_t(struct ip_fw_args *args); 543extern ip_fw_chk_t *ip_fw_chk_ptr; 544#define IPFW_LOADED (ip_fw_chk_ptr != NULL) 545 546#endif /* _KERNEL */ 547#endif /* _IPFW2_H */ |