Changeset 1863
- Timestamp:
- 05/03/07 22:50:23 (21 months ago)
- Location:
- trunk/src
- Files:
-
- 6 modified
-
common/sendpacket.c (modified) (1 diff)
-
flow/flownode.c (modified) (1 diff)
-
tcpedit/plugins/dlt_ieee80211/ieee80211.c (modified) (2 diffs)
-
tcpedit/plugins/dlt_null/null.c (modified) (3 diffs)
-
tcpedit/plugins/dlt_raw/raw.c (modified) (3 diffs)
-
tcpedit/plugins/dlt_user/user.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/common/sendpacket.c
r1804 r1863 146 146 #include <net/if_dl.h> // used for get_hwaddr_bpf() 147 147 148 static sendpacket_t *sendpacket_open_bpf(const char *, char *) _ _attribute__((unused));149 static struct tcpr_ether_addr *sendpacket_get_hwaddr_bpf(sendpacket_t *) _ _attribute__((unused));148 static sendpacket_t *sendpacket_open_bpf(const char *, char *) _U_; 149 static struct tcpr_ether_addr *sendpacket_get_hwaddr_bpf(sendpacket_t *) _U_; 150 150 151 151 #endif /* HAVE_BPF */ 152 152 153 153 #ifdef HAVE_LIBNET 154 static sendpacket_t *sendpacket_open_libnet(const char *, char *) _ _attribute__((unused));155 static struct tcpr_ether_addr *sendpacket_get_hwaddr_libnet(sendpacket_t *) _ _attribute__((unused));154 static sendpacket_t *sendpacket_open_libnet(const char *, char *) _U_; 155 static struct tcpr_ether_addr *sendpacket_get_hwaddr_libnet(sendpacket_t *) _U_; 156 156 #endif /* HAVE_LIBNET */ 157 157 158 158 #if (defined HAVE_PCAP_INJECT || defined HAVE_PCAP_SENDPACKET) 159 static sendpacket_t *sendpacket_open_pcap(const char *, char *) _ _attribute__((unused));160 static struct tcpr_ether_addr *sendpacket_get_hwaddr_pcap(sendpacket_t *) _ _attribute__((unused));159 static sendpacket_t *sendpacket_open_pcap(const char *, char *) _U_; 160 static struct tcpr_ether_addr *sendpacket_get_hwaddr_pcap(sendpacket_t *) _U_; 161 161 #endif /* HAVE_PCAP_INJECT || HAVE_PACKET_SENDPACKET */ 162 162 -
trunk/src/flow/flownode.c
r1798 r1863 109 109 */ 110 110 struct session_t * 111 newnode(_ _attribute__((unused))char proto, u_char * key, ipv4_hdr_t * ip_hdr, void *l4)111 newnode(_U_ char proto, u_char * key, ipv4_hdr_t * ip_hdr, void *l4) 112 112 { 113 113 struct sockaddr_in sa; -
trunk/src/tcpedit/plugins/dlt_ieee80211/ieee80211.c
r1841 r1863 48 48 */ 49 49 static char dlt_name[] = "ieee80211"; 50 _ _attribute__((unused))static char dlt_prefix[] = "ieee802_11";50 _U_ static char dlt_prefix[] = "ieee802_11"; 51 51 static u_int16_t dlt_value = DLT_IEEE802_11; 52 52 … … 221 221 */ 222 222 int 223 dlt_ieee80211_encode(tcpeditdlt_t *ctx, u_char **packet_ex, int pktlen, _ _attribute__((unused))tcpr_dir_t dir)223 dlt_ieee80211_encode(tcpeditdlt_t *ctx, u_char **packet_ex, int pktlen, _U_ tcpr_dir_t dir) 224 224 { 225 225 u_char *packet; -
trunk/src/tcpedit/plugins/dlt_null/null.c
r1841 r1863 44 44 45 45 static char dlt_name[] = "null"; 46 static char _ _attribute__((unused))dlt_prefix[] = "null";46 static char _U_ dlt_prefix[] = "null"; 47 47 static u_int16_t dlt_value = DLT_NULL; 48 48 … … 222 222 */ 223 223 int 224 dlt_null_encode(tcpeditdlt_t *ctx, u_char **packet_ex, int pktlen, _ _attribute__((unused))tcpr_dir_t dir)224 dlt_null_encode(tcpeditdlt_t *ctx, u_char **packet_ex, int pktlen, _U_ tcpr_dir_t dir) 225 225 { 226 226 u_char *packet; … … 318 318 */ 319 319 u_char * 320 dlt_null_get_mac(tcpeditdlt_t *ctx, _ _attribute__((unused))tcpeditdlt_mac_type_t mac, const u_char *packet, const int pktlen)320 dlt_null_get_mac(tcpeditdlt_t *ctx, _U_ tcpeditdlt_mac_type_t mac, const u_char *packet, const int pktlen) 321 321 { 322 322 assert(ctx); -
trunk/src/tcpedit/plugins/dlt_raw/raw.c
r1841 r1863 43 43 /* FIXME: edit these variables to taste */ 44 44 static char dlt_name[] = "raw"; 45 static char _ _attribute__((unused))dlt_prefix[] = "raw";45 static char _U_ dlt_prefix[] = "raw"; 46 46 static u_int16_t dlt_value = DLT_RAW; 47 47 … … 208 208 */ 209 209 int 210 dlt_raw_encode(tcpeditdlt_t *ctx, u_char **packet_ex, int pktlen, _ _attribute__((unused))tcpr_dir_t dir)210 dlt_raw_encode(tcpeditdlt_t *ctx, u_char **packet_ex, int pktlen, _U_ tcpr_dir_t dir) 211 211 { 212 212 u_char *packet; … … 299 299 */ 300 300 u_char * 301 dlt_raw_get_mac(tcpeditdlt_t *ctx, _ _attribute__((unused))tcpeditdlt_mac_type_t mac, const u_char *packet, const int pktlen)301 dlt_raw_get_mac(tcpeditdlt_t *ctx, _U_ tcpeditdlt_mac_type_t mac, const u_char *packet, const int pktlen) 302 302 { 303 303 assert(ctx); -
trunk/src/tcpedit/plugins/dlt_user/user.c
r1841 r1863 42 42 43 43 static char dlt_name[] = "user"; 44 static char _ _attribute__((unused))dlt_prefix[] = "user";44 static char _U_ dlt_prefix[] = "user"; 45 45 static u_int16_t dlt_value = DLT_USER0; 46 46 … … 346 346 */ 347 347 u_char * 348 dlt_user_get_mac(tcpeditdlt_t *ctx, _ _attribute__((unused))tcpeditdlt_mac_type_t mac, const u_char *packet, const int pktlen)348 dlt_user_get_mac(tcpeditdlt_t *ctx, _U_ tcpeditdlt_mac_type_t mac, const u_char *packet, const int pktlen) 349 349 { 350 350 assert(ctx);
