Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118340
b: refs/heads/master
c: 47b676c
h: refs/heads/master
v: v3
  • Loading branch information
Manish Katiyar authored and Paul Moore committed Oct 30, 2008
1 parent baf6e29 commit ffc5e33
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f8a024796b2bbec3d1a4ad5aae6173cfb18226b4
refs/heads/master: 47b676c0e03dcfd88de91f6f24a06653cfdf32af
2 changes: 2 additions & 0 deletions trunk/net/netlabel/netlabel_addrlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ struct netlbl_af6list *netlbl_af6list_remove(const struct in6_addr *addr,
* Audit Helper Functions
*/

#ifdef CONFIG_AUDIT
/**
* netlbl_af4list_audit_addr - Audit an IPv4 address
* @audit_buf: audit buffer
Expand Down Expand Up @@ -386,3 +387,4 @@ void netlbl_af6list_audit_addr(struct audit_buffer *audit_buf,
}
}
#endif /* IPv6 */
#endif /* CONFIG_AUDIT */
22 changes: 22 additions & 0 deletions trunk/net/netlabel/netlabel_addrlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,19 @@ struct netlbl_af4list *netlbl_af4list_search(__be32 addr,
struct netlbl_af4list *netlbl_af4list_search_exact(__be32 addr,
__be32 mask,
struct list_head *head);

#ifdef CONFIG_AUDIT
void netlbl_af4list_audit_addr(struct audit_buffer *audit_buf,
int src, const char *dev,
__be32 addr, __be32 mask);
#else
static inline void netlbl_af4list_audit_addr(struct audit_buffer *audit_buf,
int src, const char *dev,
__be32 addr, __be32 mask)
{
return;
}
#endif

#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)

Expand Down Expand Up @@ -179,11 +189,23 @@ struct netlbl_af6list *netlbl_af6list_search(const struct in6_addr *addr,
struct netlbl_af6list *netlbl_af6list_search_exact(const struct in6_addr *addr,
const struct in6_addr *mask,
struct list_head *head);

#ifdef CONFIG_AUDIT
void netlbl_af6list_audit_addr(struct audit_buffer *audit_buf,
int src,
const char *dev,
const struct in6_addr *addr,
const struct in6_addr *mask);
#else
static inline void netlbl_af6list_audit_addr(struct audit_buffer *audit_buf,
int src,
const char *dev,
const struct in6_addr *addr,
const struct in6_addr *mask)
{
return;
}
#endif
#endif /* IPV6 */

#endif

0 comments on commit ffc5e33

Please sign in to comment.