aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-05-29 18:17:05 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-31 14:25:57 +0000
commitde72d26f490460e78b4208a0ced00d83722b8918 (patch)
tree38a37ba0383465bfa5521902f98b55967e13e340
parentceac078d7763edc56eb9bdcdcadddcbd539f943a (diff)
gtp: Fix typo dublicate->duplicate
-rw-r--r--gtp/gtp.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gtp/gtp.c b/gtp/gtp.c
index 7dafefd..eec8daf 100644
--- a/gtp/gtp.c
+++ b/gtp/gtp.c
@@ -383,13 +383,13 @@ static uint32_t get_tei(void *pack)
* requires the receiving GSN to send a response, with the same information
* as in the original response. For most messages this happens automatically:
*
- * Echo: Automatically dublicates the original response
+ * Echo: Automatically duplicates the original response
* Create pdp context: The SGSN may send create context request even if
* a context allready exist (imsi+nsapi?). This means that the reply will
- automatically dublicate the original response. It might however have
+ automatically duplicate the original response. It might however have
* side effects in the application which is asked twice to validate
* the login.
- * Update pdp context: Automatically dublicates the original response???
+ * Update pdp context: Automatically duplicates the original response???
* Delete pdp context. Automatically in gtp0, but in gtp1 will generate
* a nonexist reply message.
*
@@ -724,7 +724,7 @@ static int gtp_notification(struct gsn_t *gsn, uint8_t version,
return 0;
}
-static int gtp_dublicate(struct gsn_t *gsn, uint8_t version,
+static int gtp_duplicate(struct gsn_t *gsn, uint8_t version,
struct sockaddr_in *peer, uint16_t seq)
{
struct qmsg_t *qmsg;
@@ -984,8 +984,8 @@ int gtp_echo_ind(struct gsn_t *gsn, int version, struct sockaddr_in *peer,
int fd, void *pack, unsigned len)
{
- /* Check if it was a dublicate request */
- if (!gtp_dublicate(gsn, 0, peer, get_seq(pack)))
+ /* Check if it was a duplicate request */
+ if (!gtp_duplicate(gsn, 0, peer, get_seq(pack)))
return 0;
/* Send off reply to request */
@@ -1370,7 +1370,7 @@ int gtp_create_pdp_ind(struct gsn_t *gsn, int version,
uint8_t linked_nsapi = 0;
struct pdp_t *linked_pdp = NULL;
- if (!gtp_dublicate(gsn, version, peer, seq))
+ if (!gtp_duplicate(gsn, version, peer, seq))
return 0;
pdp = &pdp_buf;
@@ -2072,8 +2072,8 @@ static int gtp_update_pdp_ind(struct gsn_t *gsn, uint8_t version,
uint64_t imsi;
uint8_t nsapi;
- /* Is this a dublicate ? */
- if (!gtp_dublicate(gsn, version, peer, seq)) {
+ /* Is this a duplicate ? */
+ if (!gtp_duplicate(gsn, version, peer, seq)) {
return 0; /* We allready send of response once */
}
@@ -2565,8 +2565,8 @@ int gtp_delete_pdp_ind(struct gsn_t *gsn, int version,
int n;
int count = 0;
- /* Is this a dublicate ? */
- if (!gtp_dublicate(gsn, version, peer, seq)) {
+ /* Is this a duplicate ? */
+ if (!gtp_duplicate(gsn, version, peer, seq)) {
return 0; /* We allready send off response once */
}