Oops! Reference to write_n() removed and changed into neat write() call.
This commit is contained in:
		
							parent
							
								
									bb8fff92e1
								
							
						
					
					
						commit
						2371551014
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -117,7 +117,7 @@ cp | ||||||
|   do_decrypt((real_packet_t*)packet, &vp, cl->key); |   do_decrypt((real_packet_t*)packet, &vp, cl->key); | ||||||
|   add_mac_addresses(&vp); |   add_mac_addresses(&vp); | ||||||
| 
 | 
 | ||||||
|   if((lenin = write_n(tap_fd, &vp, vp.len + 2)) < 0) |   if((lenin = write(tap_fd, &vp, vp.len + sizeof(vp.len))) < 0) | ||||||
|     syslog(LOG_ERR, "Can't write to tap device: %m"); |     syslog(LOG_ERR, "Can't write to tap device: %m"); | ||||||
|   else |   else | ||||||
|     total_tap_out += lenin; |     total_tap_out += lenin; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue