Changeset 1487
- Timestamp:
- 07/08/06 19:43:55 (3 years ago)
- Files:
-
- 1 modified
-
trunk/src/mac.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mac.c
r1482 r1487 118 118 { 119 119 char *tok, *tempstr, *ourstring; 120 u_char *tempmac;120 u_char tempmac[6]; 121 121 int len = 6, ret = CACHE_SECONDARY; 122 122 … … 127 127 mac2hex(tempstr, tempmac, len); 128 128 if (memcmp(mac, tempmac, len) == 0) { 129 dbgx(3, "Packet matches: " MAC_FORMAT " sending out primary.\n", MAC_STR(tempmac)); 129 130 ret = CACHE_PRIMARY; 130 131 goto EXIT_MACINSTRING; … … 138 139 if (memcmp(mac, tempmac, len) == 0) { 139 140 ret = CACHE_PRIMARY; 141 dbgx(3, "Packet matches: " MAC_FORMAT " sending out primary.\n", MAC_STR(tempmac)); 140 142 goto EXIT_MACINSTRING; 141 143 } … … 144 146 EXIT_MACINSTRING: 145 147 free(ourstring); 148 #ifdef DEBUG 149 if (ret == CACHE_SECONDARY) 150 dbg(3, "Packet doesn't match any MAC addresses sending out secondary.\n"); 151 #endif 146 152 return ret; 147 153 }
