Parcel ID03020969 delivery problems, please review
by USPS Support Management
Dear Customer,
USPS courier was unable to contact you for your parcel delivery.
Postal label is enclosed to this e-mail. Please check the attachment!
Kind thanks,
Ralph Higgins,
USPS Chief Office Manager.
7 years, 3 months
Re: [patch libteam] fix finding element in path by name
by Paganelb9
Signed-off-by: Paganelb9 <paganelb9(a)box.az>
Fix problem with retrieving state item value per interface name,
when some member interface names partially match to one another.
Like `eth1` and `eth11`, or `eth1` with `eth10`
Add also optimization suggested by Marcelo Ricardo Leitner,
not to perform any string comparison if string lengths differ.
---
teamd/teamd_state.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/teamd/teamd_state.c b/teamd/teamd_state.c
index ab64db9..952f031 100644
--- a/teamd/teamd_state.c
+++ b/teamd/teamd_state.c
@@ -318,8 +318,9 @@ static int __find_by_item_path(struct teamd_state_val_item **p_item,
subpath = ifname_end + 1;
teamd_for_each_tdport(cur_tdport, ctx) {
- if (!strncmp(cur_tdport->ifname, ifname_start,
- ifname_len)) {
+ if (strlen(cur_tdport->ifname) == ifname_len &&
+ (!strncmp(cur_tdport->ifname, ifname_start,
+ ifname_len))) {
tdport = cur_tdport;
break;
}
--
2.10.2
7 years, 3 months
Parcel #4900326 shipment problem, please review
by USPS Station Management
Dear Customer,
Your item has arrived at January 10, but our courier was not able to deliver the parcel.
You can find more details in this e-mail attachment!
Warm regards,
Brad Jennings,
USPS Operation Manager.
7 years, 3 months
Parcel 5758928 delivery notification, USPS
by USPS International
Dear Customer,
Your item has arrived at January 07, but our courier was not able to deliver the parcel.
Postal label is enclosed to this e-mail. Please check the attachment!
Your help is greatly appreciated,
Sidney Crabtree,
USPS Parcels Operation Manager.
7 years, 3 months
Notification status of your delivery (FedEx 00000229499)
by FedEx Priority Delivery
Dear Customer,
Your item has arrived at January 07, but our courier was not able to deliver the parcel.
Review the document that is attached to this e-mail!
Thank you for your time,
Jorge Holloway,
Chief Delivery Manager.
7 years, 3 months
[patch libteam] fix finding element in path by name
by Paganelb9
Fix problem with retrieving state item value per interface name,
when some member interface names partially match to one another.
Like `eth1` and `eth11`, or `eth1` with `eth10`
---
teamd/teamd_state.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
--
diff --git a/teamd/teamd_state.c b/teamd/teamd_state.c
index ab64db9..b92ac17 100644
--- a/teamd/teamd_state.c
+++ b/teamd/teamd_state.c
@@ -318,8 +318,9 @@ static int __find_by_item_path(struct teamd_state_val_item **p_item,
subpath = ifname_end + 1;
teamd_for_each_tdport(cur_tdport, ctx) {
+ size_t curname_len = strlen(cur_tdport->ifname);
if (!strncmp(cur_tdport->ifname, ifname_start,
- ifname_len)) {
+ ((ifname_len>curname_len)?ifname_len:curname_len))) {
tdport = cur_tdport;
break;
}
7 years, 3 months
USPS parcel #009152698 delivery problem
by USPS Priority Delivery
Dear Customer,
USPS courier was unable to contact you for your parcel delivery.
Please check delivery label attached!
Kind thanks,
George Mcmillan,
USPS Chief Station Manager.
7 years, 3 months