summaryrefslogtreecommitdiffstats
path: root/lib/socket_wrapper/socket_wrapper.c
diff options
context:
space:
mode:
authorJakub Wilk <jwilk@jwilk.net>2014-05-08 15:30:09 +0200
committerAndreas Schneider <asn@cryptomilk.org>2014-05-09 09:03:33 +0200
commitb003f1a453750d69b2f5d166fd865fda4463c79a (patch)
tree2d5b02c1c49a91d3216fa8604e5c45a15c2e8413 /lib/socket_wrapper/socket_wrapper.c
parentb08c50b1da2c2ec3f41cc89cd9bdcf8f077a4205 (diff)
downloadsamba-b003f1a453750d69b2f5d166fd865fda4463c79a.tar.gz
samba-b003f1a453750d69b2f5d166fd865fda4463c79a.tar.xz
samba-b003f1a453750d69b2f5d166fd865fda4463c79a.zip
Fix some typos.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10566 Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib/socket_wrapper/socket_wrapper.c')
-rw-r--r--lib/socket_wrapper/socket_wrapper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/socket_wrapper/socket_wrapper.c b/lib/socket_wrapper/socket_wrapper.c
index 3b998144462..95c5c556935 100644
--- a/lib/socket_wrapper/socket_wrapper.c
+++ b/lib/socket_wrapper/socket_wrapper.c
@@ -476,7 +476,7 @@ static void *_swrap_load_lib_function(enum swrap_lib lib, const char *fn_name)
/*
* IMPORTANT
*
- * Functions expeciall from libc need to be loaded individually, you can't load
+ * Functions especially from libc need to be loaded individually, you can't load
* all at once or gdb will segfault at startup. The same applies to valgrind and
* has probably something todo with with the linker.
* So we need load each function at the point it is called the first time.
@@ -1601,7 +1601,7 @@ static uint8_t *swrap_packet_init(struct timeval *tval,
ip->v4.tos = 0x00;
ip->v4.packet_length = htons(wire_len - icmp_truncate_len);
ip->v4.identification = htons(0xFFFF);
- ip->v4.flags = 0x40; /* BIT 1 set - means don't fraqment */
+ ip->v4.flags = 0x40; /* BIT 1 set - means don't fragment */
ip->v4.fragment = htons(0x0000);
ip->v4.ttl = 0xFF;
ip->v4.protocol = protocol;
@@ -1640,7 +1640,7 @@ static uint8_t *swrap_packet_init(struct timeval *tval,
ip->v4.tos = 0x00;
ip->v4.packet_length = htons(wire_len - icmp_hdr_len);
ip->v4.identification = htons(0xFFFF);
- ip->v4.flags = 0x40; /* BIT 1 set - means don't fraqment */
+ ip->v4.flags = 0x40; /* BIT 1 set - means don't fragment */
ip->v4.fragment = htons(0x0000);
ip->v4.ttl = 0xFF;
ip->v4.protocol = icmp_protocol;
@@ -2395,7 +2395,7 @@ static int autobind_start;
/* using sendto() or connect() on an unbound socket would give the
recipient no way to reply, as unlike UDP and TCP, a unix domain
- socket can't auto-assign emphemeral port numbers, so we need to
+ socket can't auto-assign ephemeral port numbers, so we need to
assign it here.
Note: this might change the family from ipv6 to ipv4
*/